/* ========================================================================== */
/* PHASE 5B.5.7.5 — SHARED REGISTRATION PRODUCT / CHOICE-GROUP PRESENTATION  */
/* ========================================================================== */
/* Loaded by both /pb/register/ and /pb/account/.                             */
/* Choice Groups are presented by applicable registration target             */
/* (Driver / Class, Driver, or Registration Package) rather than as a stack   */
/* of independent product cards.                                              */

.registration-choice-target {
    margin: 10px 0 16px;
    padding: 0 12px 2px;
    border: 1px solid var(--section-bg-border, #90caf9);
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.registration-choice-target-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 8px 2px 7px;
    border-bottom: 1px solid #d4e2ee;
}

.registration-choice-target-title {
    min-width: 0;
    color: #222;
    font-size: 14px;
    line-height: 1.3;
}

.registration-choice-target-requirement {
    padding: 6px 2px 2px;
    color: #666;
    font-size: 12px;
    line-height: 1.35;
}

.registration-choice-target-products {
    min-width: 0;
}

.registration-choice-product-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(82px, auto) minmax(105px, auto);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 11px 0;
    border-top: 1px solid #d4e2ee;
}

.registration-choice-target-products > .registration-choice-product-row:first-child {
    border-top: 0;
}

.registration-choice-product-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    color: #222;
    cursor: pointer;
}

.registration-choice-product-main input[type="checkbox"] {
    flex: 0 0 auto;
    width: auto;
    margin: 3px 0 0;
}

.registration-choice-product-main input[type="checkbox"]:disabled {
    cursor: default;
}

.registration-choice-product-text {
    display: block;
    min-width: 0;
}

.registration-choice-product-name {
    display: block;
    color: #222;
    font-size: 14px;
	font-weight: 600 !important;
    line-height: 1.3;
}

.registration-choice-product-description,
.registration-choice-product-status {
    display: block;
    margin-top: 3px;
    color: #5f6d79;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.35;
}

.registration-choice-product-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
}

.registration-choice-product-quantity,
.registration-choice-product-beneficiary {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #222;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
}

.registration-choice-product-quantity input[type="number"] {
    width: 50px;
    max-width: 50px;
    min-width: 0;
    box-sizing: border-box;
    font-size: 14px;
}

.registration-choice-product-beneficiary select {
    width: auto;
    max-width: 190px;
    margin: 0;
    padding: 5px 7px;
    box-sizing: border-box;
    background: #fff;
    color: #222;
}

.registration-choice-product-fixed-qty {
    color: #333;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.registration-choice-product-price {
    justify-self: end;
    color: #222;
    font-size: 14px;
	font-weight: 900 !important;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

/* Keep quantity inputs compact and consistent between standalone and grouped
   Event Options. The input remains capable of accepting larger numeric values;
   this only limits its visual width. */
.registration-catalog-quantity input[type="number"] {
    width: 50px;
    max-width: 50px;
    min-width: 0;
    box-sizing: border-box;
    font-size: 14px;
}

/* Keep the legacy group selectors harmless for any cached markup that survives
   a browser refresh while the new HTML is loading. */
.registration-product-choice-group,
.account-modify-option-choice-group {
    margin: 10px 0;
    padding: 8px;
    border: 1px solid var(--section-bg-border, #90caf9);
    border-radius: 6px;
    background: var(--section-bg, #d6eaf8);
    box-sizing: border-box;
}

.registration-product-choice-group-header,
.account-modify-option-choice-group-header {
    margin: 0 0 8px;
    padding: 2px 2px 8px;
    border-bottom: 1px dashed var(--section-bg-border, #90caf9);
    color: #333;
}

@media (max-width: 675px) {
    .registration-choice-target {
        padding-left: 9px;
        padding-right: 9px;
    }

    .registration-choice-target-header {
        gap: 9px;
        flex-wrap: wrap;
    }

    .registration-choice-product-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
    }

    .registration-choice-product-main {
        grid-column: 1 / -1;
    }

    .registration-choice-product-controls {
        grid-column: 1;
        padding-left: 26px;
    }

    .registration-choice-product-price {
        grid-column: 2;
    }

    .registration-choice-product-beneficiary {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .registration-choice-product-beneficiary select {
        max-width: 100%;
    }
}
