/* Engagement ring pages (Dec 2026 conversion improvements).
   Loaded by controls/detail/MainProductDetails.ascx (every jewellery product page) and BYOConfirm.ascx (ring review page).
   Layout rules apply only inside .gn-er-page (engagement ring settings and complete rings) or the ring review page;
   messages (.gn-er-msg) are also used by the wish list / View In Person fixes on other jewellery pages.
   Same visual language as /assets/css/diamond-detail.css: brand blue #006396 (dark #004163). */

/* ---------- Messages ---------- */
.gn-er-msg { margin: 10px 0; padding: 10px 12px; font-size: 13px; line-height: 1.45; text-align: left; }
.gn-er-msg[hidden] { display: none; }
.gn-er-msg-error { background: #fdecea; border: 1px solid #f1b4ab; color: #7a1a10; }
.gn-er-msg-error a { color: #7a1a10; font-weight: 600; text-decoration: underline; }
.gn-er-msg-info { background: #eef5f9; border: 1px solid #b9d3e3; color: #12384d; }

/* ---------- Summary: key facts, SKU, what the price includes ---------- */
.gn-er-page .gn-er-keyfacts { margin: 6px 0 2px; font-size: 14px; line-height: 1.45; color: #333; }
.gn-er-page .gn-er-keyfacts .gn-er-sep { color: #9aa5ad; margin: 0 3px; }
.gn-er-page .gn-er-sku { margin: 0 0 6px; font-size: 12px; color: #666; letter-spacing: .03em; }
.gn-er-page .item-select .item-price { padding-top: 6px; }
.gn-er-inclusion { margin: 4px 0 8px; font-size: 14px; line-height: 1.45; color: #1a1a1a; }
.gn-er-inclusion strong { font-weight: 700; color: #004163; }
.gn-er-inclusion-next { display: block; color: #333; }
.gn-er-withdiamond { margin: 6px 0 10px; padding: 10px 12px; background: #f3f8fb; border: 1px solid #cfe1ec; }
.gn-er-withdiamond-title { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: #004163; }
.gn-er-breakdown { margin: 0 0 8px; font-size: 13px; line-height: 1.4; }
.gn-er-breakdown > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.gn-er-breakdown dt { font-weight: 400; color: #333; }
.gn-er-breakdown dd { margin: 0; font-weight: 600; color: #1a1a1a; white-space: nowrap; }
.gn-er-breakdown .gn-er-breakdown-total { border-top: 1px solid #cfe1ec; margin-top: 3px; padding-top: 6px; }
.gn-er-breakdown .gn-er-breakdown-total dt, .gn-er-breakdown .gn-er-breakdown-total dd { font-weight: 700; color: #004163; }
.gn-er-delivery { margin: 6px 0 10px; font-size: 13px; line-height: 1.45; color: #333; }
.gn-er-delivery strong { color: #1a1a1a; font-weight: 600; }

/* ---------- Options ---------- */
.gn-er-option { margin: 0 0 12px; text-align: left; }
.gn-er-page .customise-ring label.gn-er-label, .gn-er-label {
    display: block; margin: 0 0 4px; padding: 0; background: none; font-family: inherit; font-style: normal; font-size: 13px; font-weight: 600;
    line-height: 1.35; color: #333; letter-spacing: .02em; text-transform: none;
}
.gn-er-page .customise-ring label.gn-er-label::before, .gn-er-page .customise-ring label.gn-er-label::after { content: none; display: none; }
.gn-er-label-note { font-weight: 400; color: #666; }
.gn-er-page select.gn-er-select { height: 48px; padding: 8px 12px; font-size: 15px; color: #1a1a1a; border: 1px solid #bfc8cf; border-radius: 0; box-shadow: none; background-color: #fff; }
.gn-er-page select.gn-er-select:focus { border-color: #006396; box-shadow: 0 0 0 2px rgba(66, 179, 237, .45); }
.gn-er-page select.gn-er-select.is-invalid { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192, 57, 43, .25); }
.gn-er-static { margin: 0; padding: 12px; border: 1px solid #e1e5e8; font-size: 15px; color: #1a1a1a; }
.gn-er-field-msg { margin: 6px 0 0; font-size: 13px; line-height: 1.4; font-weight: 600; color: #a1271a; }
.gn-er-field-msg[hidden] { display: none; }
.gn-er-size-help { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: #555; }
.gn-er-size-help a { color: #006396; text-decoration: underline; }

/* ---------- Buttons ---------- */
.gn-er-btn {
    display: block; width: 100%; min-height: 50px; margin: 0 0 10px; padding: 12px 16px;
    font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
    border-radius: 0; box-shadow: none; white-space: normal; transition: background-color .15s, color .15s;
}
.gn-er-btn-primary, a.gn-er-btn-primary { background: #006396; border: 2px solid #006396; color: #fff; }
.gn-er-btn-primary:hover, .gn-er-btn-primary:focus, a.gn-er-btn-primary:hover, a.gn-er-btn-primary:focus { background: #004163; border-color: #004163; color: #fff; }
.gn-er-btn-secondary, a.gn-er-btn-secondary { background: #fff; border: 2px solid #006396; color: #006396; }
.gn-er-btn-secondary:hover, .gn-er-btn-secondary:focus { background: #eef5f9; color: #004163; }
.gn-er-btn:focus-visible { outline: 3px solid #42B3ED; outline-offset: 2px; }
.gn-er-btn[disabled], .gn-er-btn.is-disabled { opacity: .7; cursor: progress; }
.gn-er-btn[aria-busy="true"] { opacity: 1; }
.gn-er-purchase { margin: 4px 0 14px; }

/* ---------- Reviews, benefits and contact ---------- */
.gn-er-reviews { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: #333; }
.gn-er-reviews .gn-er-stars { color: #e0a800; letter-spacing: 1px; margin-right: 4px; }
.gn-er-reviews a { color: #006396; text-decoration: underline; white-space: nowrap; }
.gn-er-benefits { list-style: none; margin: 0 0 14px; padding: 0; font-size: 13px; color: #333; text-align: left; }
.gn-er-benefits li { position: relative; padding: 3px 0 3px 22px; line-height: 1.4; }
.gn-er-benefits li::before { content: "\2713"; position: absolute; left: 2px; top: 3px; color: #006396; font-weight: 700; }
.gn-er-contact { border-top: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6; padding: 10px 0; margin-bottom: 16px; text-align: left; }
.gn-er-contact-title { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: #333; }
.gn-er-contact-link { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-height: 44px; padding: 6px 0; font-size: 14px; line-height: 1.35; color: #006396; text-decoration: none; }
.gn-er-contact-link:hover, .gn-er-contact-link:focus { color: #004163; text-decoration: underline; }
.gn-er-contact-link .fa { width: 18px; text-align: center; font-size: 16px; }
.gn-er-contact-cta { font-weight: 600; text-decoration: underline; }
.gn-er-contact-virtual { font-size: 13px; }

/* Secondary actions on ring pages: a little closer to the purchase area. */
.gn-er-page .customise-ring .product-extra-actions { margin-top: 0; }
.gn-er-page .item-select .view-ring-person { margin-top: 6px; }

/* ---------- Photo label on settings ---------- */
.gn-er-page #productDefaultPhotos { position: relative; }
.gn-er-photo-label {
    position: absolute; left: 10px; bottom: 10px; z-index: 3; padding: 5px 9px; background: rgba(255, 255, 255, .94); border: 1px solid #d5d5d5;
    color: #333; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; pointer-events: none;
}

/* ---------- Recently viewed: hidden until it has other items ---------- */
.gn-er-page [data-ng-controller="RecentlyViewdCtrl"]:not(.gn-er-has-items) { display: none !important; }

/* ---------- Ring review page ---------- */
.page-ring-confirm .gn-er-missing { margin: 10px 0 14px; padding: 12px; background: #fff8e6; border: 1px solid #f0d58a; }
.page-ring-confirm .gn-er-missing-title { margin: 0 0 10px; font-size: 14px; line-height: 1.4; font-weight: 600; color: #5c4400; }
.page-ring-confirm .gn-er-missing .gn-er-btn { margin-bottom: 8px; }
.page-ring-confirm .gn-er-breakdown { margin-top: 10px; }
.page-ring-confirm .gn-er-total-label { display: block; font-size: 13px; font-weight: 600; color: #333; letter-spacing: .02em; }
.page-ring-confirm .gn-er-inclusion-complete { margin: 4px 0 0; font-size: 13px; }
.page-ring-confirm .gn-er-size-hint { margin: 0 0 10px; padding: 8px 10px; font-size: 13px; line-height: 1.45; background: #eef5f9; border: 1px solid #b9d3e3; color: #12384d; }
.page-ring-confirm .gn-er-size-hint.is-error { background: #fdecea; border-color: #f1b4ab; color: #7a1a10; }
.page-ring-confirm .gn-er-size-hint a { text-decoration: underline; }
.page-ring-confirm .gn-er-contact { margin-top: 12px; }

/* ---------- Mobile sticky purchase bar (phones only) ---------- */
.gn-er-sticky { display: none; }
@media (max-width: 767px) {
    .gn-er-sticky {
        display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #d5dde2;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, .12); transform: translateY(110%); transition: transform .2s ease-out; visibility: hidden;
    }
    .gn-er-sticky.is-visible { transform: translateY(0); visibility: visible; }
    .gn-er-sticky-info { flex: 1 1 auto; min-width: 0; line-height: 1.2; }
    .gn-er-sticky-price { display: block; font-size: 18px; font-weight: 700; color: #004163; }
    .gn-er-sticky-note { display: block; font-size: 11px; line-height: 1.25; color: #444; }
    .gn-er-sticky .gn-er-sticky-btn { flex: 0 0 auto; width: auto; min-width: 150px; max-width: 58%; min-height: 48px; margin: 0; padding: 10px 12px; font-size: 13px; }
    body.gn-er-sticky-on { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 359px) {
    .gn-er-sticky .gn-er-sticky-btn { min-width: 120px; font-size: 12px; letter-spacing: .03em; }
    .gn-er-sticky-price { font-size: 16px; }
}

/* ---------- Phones: summary, photo, then purchase area ---------- */
@media (max-width: 767px) {
    .gn-er-layout { display: flex; flex-direction: column; }
    .gn-er-layout::before, .gn-er-layout::after { display: none; }
    .gn-er-layout > .col-md-4, .gn-er-layout > .col-md-4 > .item-select { display: contents; }
    .gn-er-layout .gn-er-summary { order: 1; padding: 0 15px 6px; }
    .gn-er-layout > .col-md-8 { order: 2; }
    .gn-er-layout .gn-er-buy { order: 3; padding: 0 15px; }

    .gn-er-page .gn-er-summary .item-title { font-size: 20px; line-height: 1.3; margin: 0 0 2px; }
    .gn-er-page .gn-er-summary .item-price { font-size: 28px; padding-top: 0; line-height: 1.2; margin-bottom: 0; }
    .gn-er-page .gn-er-summary .item-price .gst-status { font-size: 12px; line-height: 1.3; }
    .gn-er-page .gn-er-summary .item-price > div + div { margin-top: 0; }
    .gn-er-page .gn-er-photo-label { font-size: 10px; padding: 4px 7px; left: 8px; bottom: 8px; }
    .gn-er-page .gn-er-inclusion { font-size: 14px; margin: 4px 0 6px; }
    .gn-er-page .gn-er-keyfacts, .gn-er-page .gn-er-sku, .gn-er-page .gn-er-inclusion, .gn-er-page .gn-er-delivery { text-align: center; }
    .gn-er-page .gn-er-keyfacts { margin: 2px 0; font-size: 13px; }
    .gn-er-page .gn-er-sku { margin-bottom: 2px; }
    .gn-er-page .gn-er-delivery { margin: 8px 0 10px; }

    /* Less space above the product; the steps bar and breadcrumb stay. */
    .gn-er-page .breadcrumb { margin-bottom: 4px; padding-top: 6px; padding-bottom: 6px; }
    .gn-er-page .steps-container { margin-bottom: 6px; }

    /* Smaller photo area and thumbnails so the purchase area comes up sooner; the photo keeps its full resolution. */
    .gn-er-page #productDefaultPhotos .iosSlider, .gn-er-page #productDefaultPhotos .slider { max-height: 340px; }
    .gn-er-page #productDefaultPhotos img.img-responsive { max-height: 330px; width: auto; margin: 0 auto; }
    .gn-er-page .gn-er-layout > .col-md-8 > .col-xs-12 .col-xs-3 { padding-left: 4px; padding-right: 4px; }
    .gn-er-page .gn-er-layout > .col-md-8 > .col-xs-12 img.paper { max-height: 64px; width: auto; }
    .gn-er-page .gn-er-layout > .col-md-8 { margin-bottom: 4px; }
}
