/* Custom styles for Nested Adoption Solutions (NAS) */
/* Base Styles */
.nested-details-item {
    margin-bottom: 0;
}

.nested-details-label {
    font-weight: bold;
    margin-right: 5px;
}

.nested-details-value {
    font-weight: normal;
}

.nested-details-single {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
    color: #333;
}

.nested-details-single li {
    margin-bottom: 10px;
}

.nested-separator-single {
    margin: 0 8px;
    font-weight: normal;
}

/* Embryo Details */
.embryo-single-set-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.embryo-single-set-profile {
    border: 1px solid #ccc;
    padding: 16px;
    background-color: #f9f9f9;
    flex: 1 1 calc(33.333% - 32px);
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

.embryo-single-set-profile:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.embryo-single-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1em;
    margin-bottom: 8px;
}

/* Embryo Summary */
.embryo-loop-card {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1%;
    margin: 1%;
    transition: box-shadow 0.3s ease;
    line-height: 1.2;
    box-sizing: border-box;
}

.embryo-loop-card-title {
    text-align: center;
    font-size: 1.25rem;
    line-height: inherit;
    text-transform: capitalize;
    font-weight: 600;
    margin: 0;
}

.product-loop-card-link {
    display: block;
    color: #14261C;
    text-decoration: none;
}

.embryo-loop-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.embryo-loop-card-set {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin-bottom: 0.5em;
    border-bottom: 1px solid #eee;
}

.embryo-loop-card-set:last-child {
    border-bottom: none;
}

.embryo-loop-card-set span {
    display: inline-block;
    margin-right: 2px;
}

/* Embryo Summary Responsive Handling */
@media (max-width: 768px) {
    .embryo-loop-card {
        padding: 2%;
        margin: 2%;
    }

    .embryo-loop-card-title {
        font-size: 1.1rem;
    }

    .embryo-loop-card-set {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .embryo-loop-card {
        padding: 3%;
        margin: 3%;
    }

    .embryo-loop-card-title {
        font-size: 1rem;
    }

    .embryo-loop-card-set {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Embryology Notes */
.embryology-notes-container {
    text-align: left;
}

.embryology-notes {
    font-size: 1.5rem;
}

.embryology-notes-label {
    font-weight: bold;
}

.embryology-notes-value {
    font-weight: normal;
}

/* Embryo Details Container */
.embryo-details-container {
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    padding: 1vw;
    margin: auto;
}

.embryo-details-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.embryo-details-error {
    text-align: center;
    color: red;
    font-weight: bold;
}

/* Oocyte Details */
.oocyte-single-sets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.oocyte-single-set-profile {
    border: 1px solid #ccc;
    padding: 16px;
    background-color: #f9f9f9;
    flex: 1 1 calc(33.333% - 32px);
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

.oocyte-single-set-profile:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.oocyte-single-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 8px;
}

/* Oocyte Summary */
.oocyte-loop-card {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1%;
    margin: 1%;
    transition: box-shadow 0.3s ease;
    line-height: 1.2;
    box-sizing: border-box;
}

.oocyte-loop-card-title {
    text-align: center;
    font-size: 1.5rem;
    line-height: inherit;
    text-transform: capitalize;
    font-weight: 600;
    margin: 0;
}

.oocyte-loop-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.oocyte-loop-card-set {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin-bottom: 0.5em;
    border-bottom: 1px solid #eee;
}

.oocyte-loop-card-set:last-child {
    border-bottom: none;
}

.oocyte-loop-card-set span {
    display: inline-block;
    margin-right: 2px;
}

/* Oocyte Details Container */
.oocyte-details-container {
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    padding: 1vw;
    margin: auto;
}

.oocyte-details-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.oocyte-details-error {
    text-align: center;
    color: red;
    font-weight: bold;
}

/* Availability Colors */
.availability.available {
    color: #548235;
}

.availability.adopted {
    color: #934BC9;
}

.availability.lab-reserved {
    color: #a00;
}

.availability.on-hold {
    color: #934BC9;
}

/* Donor Characteristics */
.donor-characteristics {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    line-height: 1.2;
    box-sizing: border-box;
    padding: 1vw;
    margin: auto;
}

.donor-characteristics-title {
    text-align: center;
    font-size: 2rem;
    line-height: 2.5rem;
    text-transform: capitalize;
    font-weight: 600;
}

.donor-characteristics-item {
    text-align: left;
    margin-bottom: 10px;
}

.donor-characteristics-label {
    font-weight: bold;
}

.donor-characteristics-value {
    font-weight: normal;
}

/* Each product item */
.product-loop-item {
    flex: 1 1 30%;
    box-sizing: border-box;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f8f8;
}

/* Product name styling */
.woocommerce-checkout-review-order-table .product-name {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Quantity styling */
.woocommerce-checkout-review-order-table .product-name .product-quantity {
    margin-left: 5px;
    font-weight: normal;
}

/* Subtotal description styling */
.woocommerce-checkout-review-order-table .product-total {
    flex: 0 0 auto;
    text-align: right;
    padding-left: 20px;
    white-space: nowrap;
}

/* Custom Button */
.ast-custom-button {
    padding: 6px 12px;
    font-size: 1.2rem;
}
