/* v1.3: Size controls live under the selected CartFlows product option, not in Your order. */
.wcf-qty-row .mh-pfs-product-size-wrap {
    display: block;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    margin-top: 10px;
    padding-top: 8px;
}

.wcf-qty-row .mh-pfs-product-size-wrap[hidden] {
    display: none !important;
}

.wcf-qty-row .mh-pfs-product-size-title {
    display: block;
    margin: 2px 0 9px;
    color: #d63638 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.35;
}

.wcf-qty-row .mh-pfs-product-size-title .required {
    color: #b32d2e;
}

.wcf-qty-row .mh-pfs-product-size-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 10px;
}

/* v1.5.2: Larger, clearer and more stylish size choices without changing size logic. */
.wcf-qty-row .mh-pfs-product-size-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 58px;
    min-height: 40px;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 12px;
    border: 1.5px solid #d7dce2;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wcf-qty-row .mh-pfs-product-size-option:hover {
    border-color: #d63638;
    background: #fff8f8;
    box-shadow: 0 2px 6px rgba(214, 54, 56, 0.14);
    transform: translateY(-1px);
}

.wcf-qty-row .mh-pfs-product-size-option:has(input[type="radio"]:checked) {
    border-color: #d63638;
    background: #fff1f1;
    box-shadow: 0 0 0 2px rgba(214, 54, 56, 0.10);
}

.wcf-qty-row .mh-pfs-product-size-option input[type="radio"] {
    position: static !important;
    display: inline-block !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    vertical-align: middle;
    cursor: pointer;
    accent-color: #d63638;
}

.wcf-qty-row .mh-pfs-product-size-option span {
    display: inline-block;
    min-width: 22px;
    color: #24292f;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1;
    text-align: center;
}

.wcf-qty-row .mh-pfs-product-size-error {
    display: none;
    margin-top: 6px;
    color: #b32d2e;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.wcf-qty-row .mh-pfs-product-size-wrap.mh-pfs-size-missing {
    padding-left: 8px;
    border-left: 3px solid #b32d2e;
}

/* Keep the size choices large and touch-friendly on narrow mobile checkout rows. */
@media (max-width: 600px) {
    .wcf-qty-row .mh-pfs-product-size-options {
        gap: 8px;
    }

    .wcf-qty-row .mh-pfs-product-size-title {
        font-size: 17px !important;
    }

    .wcf-qty-row .mh-pfs-product-size-option {
        min-width: 56px;
        min-height: 38px;
        padding: 7px 10px;
        font-size: 15px !important;
    }

    .wcf-qty-row .mh-pfs-product-size-option span {
        font-size: 15px !important;
    }

    .wcf-qty-row .mh-pfs-product-size-option input[type="radio"] {
        width: 19px !important;
        min-width: 19px !important;
        height: 19px !important;
    }
}
