/* SKYONE product detail polish — visual only, all ordinary product IDs.
   Native form/AJAX actions, visibility, quantity handling, stock and payment gates remain intact. */
#tygh_container .ty-product-detail.sky-pdp-r12 {
    --sky-product-ink: #142447;
    --sky-product-muted: #617086;
    --sky-product-blue: #37475a;
    --sky-product-blue-hover: #485a70;
    --sky-product-border: #dce3ed;
    --sky-product-soft: #f6f7f9;
    box-sizing: border-box;
    width: 100%;
    max-width: 1320px;
    margin: 20px auto 32px;
    color: var(--sky-product-ink);
    font-family: Arial, Helvetica, sans-serif;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) 280px !important;
    grid-template-rows: auto 1fr;
    gap: 0 28px !important;
    align-items: start;
    min-width: 0;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .sky-product-heading {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding-bottom: 16px;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .sky-product-heading .ty-product-block-title {
    margin: 0 0 10px !important;
    color: var(--sky-product-ink) !important;
    font-size: clamp(23px, 2.1vw, 29px) !important;
    line-height: 1.25 !important;
    font-weight: 650 !important;
    overflow-wrap: anywhere;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .sky-product-byline,
#tygh_container .ty-product-detail.sky-pdp-r12 .sky-product-links {
    margin: 0 !important;
    padding: 0;
    line-height: 1.5;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .sky-product-links a,
#tygh_container .ty-product-detail.sky-pdp-r12 .ty-company-name-link {
    color: #142447;
    font-size: 14px !important;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__img-wrapper {
    grid-column: 1;
    grid-row: 1 / span 2 !important;
    box-sizing: border-box;
    position: static !important;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
}

#tygh_container .ty-product-detail.sky-pdp-r12 :is(.ty-product-block__img, .ty-product-img, .sky-native-image-set) {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-image-zoom__wrapper {
    height: 400px !important;
    max-width: 100%;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-img img.ty-pict {
    max-width: 100% !important;
    max-height: 400px !important;
    object-fit: contain;
}

/* Keep the actual native missing-image state, without its inline 480px overflow. */
#tygh_container .ty-product-detail.sky-pdp-r12 .ty-no-image {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 100% !important;
    height: auto !important;
    min-height: 300px;
    aspect-ratio: 1;
    max-width: 100%;
    border: 1px solid #e7ecf3;
    border-radius: 12px;
    background: #f7f9fc;
    color: #b5c1d2;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-no-image__icon {
    position: static;
    margin: 0;
    color: #b5c1d2;
    font-size: 58px;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__img-wrapper:has(.ty-no-image) .sky-image-help {
    display: none;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__col-1 {
    grid-column: 2;
    grid-row: 2;
    width: auto !important;
    min-width: 0;
    margin: 0;
    padding: 0;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__col-2 {
    grid-column: 3;
    grid-row: 1 / span 2;
    box-sizing: border-box;
    position: static !important;
    width: auto !important;
    min-width: 0;
    margin: 0;
    padding: 0;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__offer {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 20px !important;
    border: 1px solid var(--sky-product-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px #14244706;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__offer .ty-product-block__button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 14px 0 0 !important;
    padding-top: 14px;
    border-top-color: #e8edf4;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__offer .ty-products-buttons-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__offer .ty-btn__primary,
#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__offer .ty-add-to-cart-stepper__cart {
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0;
    min-height: 48px;
    margin: 0 !important;
    padding: 12px 16px !important;
    border: 1px solid var(--sky-product-blue) !important;
    border-radius: 8px !important;
    background: var(--sky-product-blue) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 15px !important;
    line-height: 22px !important;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    white-space: normal;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__offer .ty-btn__primary:hover,
#tygh_container .ty-product-detail.sky-pdp-r12 .ty-add-to-cart-stepper__cart:hover {
    border-color: var(--sky-product-blue-hover) !important;
    background: var(--sky-product-blue-hover) !important;
    color: #fff !important;
}

/* The visibility rule deliberately excludes .hidden: CS-Cart owns the state. */
#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__button .ty-add-to-cart-stepper:not(.hidden) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__button .ty-add-to-cart-stepper__quantity:not(.hidden, .ty-add-to-cart-stepper__quantity--edp) {
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    width: 100% !important;
    min-width: 0;
    height: 48px;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--sky-product-border);
    border-radius: 8px;
    background: var(--sky-product-soft);
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__button :is(.ty-add-to-cart-stepper__decrease, .ty-add-to-cart-stepper__increase) {
    box-sizing: border-box;
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px !important;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--sky-product-soft) !important;
    color: var(--sky-product-ink) !important;
    font-size: 16px;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__button :is(.ty-add-to-cart-stepper__decrease, .ty-add-to-cart-stepper__increase):hover {
    background: #e9edf2 !important;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__button input.ty-add-to-cart-stepper__input-quantity:not(.ty-add-to-cart-stepper__input-quantity--edp) {
    box-sizing: border-box;
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 6px;
    border: 0;
    border-inline: 1px solid var(--sky-product-border);
    border-radius: 0;
    background: #fff;
    color: var(--sky-product-ink);
    box-shadow: none;
    font: 600 16px/46px Arial, Helvetica, sans-serif;
    text-align: center;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-add-to-cart-stepper__cart {
    --ty-add-to-cart-stepper-success-text-color: #fff;
    --ty-add-to-cart-stepper-success-text-color-hover: #fff;
    --ty-add-to-cart-stepper-success-background-color: #37475a;
    --ty-add-to-cart-stepper-success-background-color-hover: #485a70;
    border-color: var(--sky-product-blue) !important;
    border-radius: 8px;
    background: var(--sky-product-blue) !important;
    color: #fff !important;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-add-to-cart-stepper__cart .ty-icon {
    color: #fff;
    font-size: 15px;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-add-to-cart-stepper__cart-icon--in-cart {
    transform: none;
    margin-inline-start: 8px !important;
}

#tygh_container .ty-product-detail.sky-pdp-r12 :is(.ty-add-to-wish, .ty-add-to-compare) {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #cbd5e3 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--sky-product-ink) !important;
    box-shadow: none;
    line-height: 20px !important;
    text-decoration: none;
}

#tygh_container .ty-product-detail.sky-pdp-r12 :is(.ty-add-to-wish, .ty-add-to-compare):hover {
    border-color: #8e9bae !important;
    background: var(--sky-product-soft) !important;
}

#tygh_container .ty-product-detail.sky-pdp-r12 :is(.ty-add-to-wish, .ty-add-to-compare)::after {
    color: var(--sky-product-ink);
    font: 400 13px/20px Arial, Helvetica, sans-serif;
}

#tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__button > p {
    margin: 10px 0 0;
    color: var(--sky-product-muted);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#tygh_container .ty-product-detail.sky-pdp-r12 :is(a, button, input, select):focus-visible {
    outline: 2px solid var(--sky-product-blue);
    outline-offset: 3px;
}

#tygh_container .ty-product-detail.sky-pdp-r12 :is(.ty-btn__primary, .ty-add-to-cart-stepper__cart):is(:disabled, [aria-disabled="true"], .disabled) {
    opacity: .55;
}

@media (max-width: 1120px) {
    #tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__wrapper {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 0 24px !important;
    }
    #tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__img-wrapper {
        grid-row: 1 / span 3 !important;
    }
    #tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__col-2 {
        grid-column: 2;
        grid-row: 3;
        margin-top: 20px;
    }
    #tygh_container .ty-product-detail.sky-pdp-r12 .ty-no-image {
        min-height: 250px;
    }
}

@media (max-width: 760px) {
    #tygh_container .ty-product-detail.sky-pdp-r12 {
        margin: 8px auto 24px;
    }
    #tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__wrapper {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: none;
        gap: 18px !important;
    }
    #tygh_container .ty-product-detail.sky-pdp-r12 :is(.sky-product-heading, .ty-product-block__img-wrapper, .ty-product-block__col-1, .ty-product-block__col-2) {
        grid-column: 1;
        grid-row: auto !important;
        min-width: 0;
        margin: 0;
    }
    #tygh_container .ty-product-detail.sky-pdp-r12 .sky-product-heading { order: 1; padding-bottom: 0; }
    #tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__img-wrapper { order: 2; }
    #tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__col-1 { order: 3; }
    #tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__col-2 { order: 4; }
    #tygh_container .ty-product-detail.sky-pdp-r12 .sky-product-heading .ty-product-block-title {
        font-size: 24px !important;
        line-height: 30px !important;
    }
    #tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-block__offer {
        padding: 18px !important;
    }
    #tygh_container .ty-product-detail.sky-pdp-r12 .ty-no-image {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
    #tygh_container .ty-product-detail.sky-pdp-r12 .ty-image-zoom__wrapper {
        height: 320px !important;
    }
    #tygh_container .ty-product-detail.sky-pdp-r12 .ty-product-img img.ty-pict {
        max-height: 320px !important;
    }
}
/* Guest Buy now is a real registration entry, not a decorative disabled control. */
#tygh_container #tygh_main_container .ty-product-detail.sky-pdp-r12 .ty-product-block__offer .ty-product-block__button a.ty-btn__primary {display:flex!important;}

#tygh_container .ty-product-detail.sky-pdp-r12 .sky-native-image-set:has(.ty-no-image) {grid-template-columns:minmax(0,1fr)!important;}

/* Product grid: use the storefront's blue treatment for the in-cart check button. */
#tygh_container .ty-grid-list__item .ty-add-to-cart-stepper__cart {
    --ty-add-to-cart-stepper-success-background-color: #dceaff;
    --ty-add-to-cart-stepper-success-background-color-hover: #c8ddff;
}

/* Skyone commerce UI. Scoped to the storefront cart and native checkout. */
#tygh_container .sky-shop-cart {
  --sc-ink:#142447;--sc-muted:#5c687a;--sc-line:#e2e7ef;--sc-blue:#37475a;
  color:var(--sc-ink);max-width:1280px;margin:0 auto;padding:28px 0 48px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
}
#tygh_container .sky-commerce-heading {margin:0 0 28px!important;}
#tygh_container .sky-commerce-eyebrow {font-size:11px!important;letter-spacing:1.7px;font-weight:700!important;color:#66768d!important;margin:0 0 8px!important;}
#tygh_container .sky-commerce-heading h1 {font-family:inherit!important;font-size:32px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:-.7px;margin:0 0 10px!important;color:#142447!important;}
#tygh_container .sky-commerce-heading>p:last-child {font-size:15px!important;line-height:1.65!important;color:#5c687a!important;margin:0!important;}
#tygh_container .sky-commerce-cart-layout {display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:28px;align-items:start;}
#tygh_container .sky-commerce-cart-items {min-width:0;}
#tygh_container .sky-commerce-cart-items #cart_items {border:1px solid #e2e7ef;border-radius:14px;overflow:hidden;background:#fff;}
#tygh_container .sky-commerce-cart-items .ty-mainbox-cart__title {display:none;}
#tygh_container .sky-commerce-cart-items .ty-mainbox-cart__body {margin:0;padding:0;}
#tygh_container .sky-commerce-cart-items .ty-cart-content {margin:0!important;width:100%;border:0!important;table-layout:auto;}
#tygh_container .sky-commerce-cart-items .ty-cart-content th {font-size:11px!important;letter-spacing:.5px;text-transform:uppercase;font-weight:600!important;color:#6a7483!important;background:#f6f8fb!important;padding:16px 14px!important;border:0!important;border-bottom:1px solid #e2e7ef!important;white-space:nowrap;}
#tygh_container .sky-commerce-cart-items .ty-cart-content td {padding:24px 14px!important;vertical-align:middle!important;border:0!important;border-bottom:1px solid #eef1f5!important;background:white!important;}
#tygh_container .sky-commerce-cart-items .ty-cart-content tbody tr:last-child td {border-bottom:0!important;}
#tygh_container .sky-commerce-cart-items .ty-cart-content__image-block {width:82px!important;min-width:70px!important;}
#tygh_container .sky-commerce-cart-items .ty-cart-content__image {width:76px;height:88px;display:flex;align-items:center;justify-content:center;background:#f4f6f9;border-radius:9px;overflow:hidden;}
#tygh_container .sky-commerce-cart-items .ty-cart-content__image img {max-width:76px!important;max-height:88px!important;object-fit:contain;}
#tygh_container .sky-commerce-cart-items .ty-no-image {width:76px!important;height:88px!important;background:transparent!important;border:0!important;}
#tygh_container .sky-commerce-cart-items .ty-cart-content__description {width:auto!important;min-width:140px;}
#tygh_container .sky-commerce-cart-items .ty-cart-content__product-title {font-family:inherit!important;font-size:16px!important;line-height:1.45!important;font-weight:650!important;color:#142447!important;}
#tygh_container .sky-commerce-cart-items .ty-cart-content__description .ty-group-block {background:none!important;padding:8px 0 0!important;margin:0!important;border:0!important;font-size:12px!important;color:#6a7483!important;}
#tygh_container .sky-commerce-cart-items .ty-group-block__arrow {display:none;}
#tygh_container .sky-commerce-cart-items .ty-cart-content__product-delete {color:#6a7483!important;margin-left:10px;font-size:14px!important;}
#tygh_container .sky-commerce-cart-items .ty-cart-content__price {white-space:nowrap;font-size:14px!important;min-width:75px;}
#tygh_container .sky-commerce-cart-items .ty-cart-content__price .ty-price-num {font-size:15px!important;font-weight:600!important;color:#142447!important;}
#tygh_container .sky-commerce-cart-items .ty-value-changer {display:grid!important;grid-template-columns:28px 38px 28px;grid-template-areas:"minus input plus";align-items:center;width:94px!important;height:40px!important;border:1px solid #dce2ec!important;border-radius:8px!important;background:#fff!important;overflow:hidden;float:none!important;margin:auto!important;}
#tygh_container .sky-commerce-cart-items .ty-value-changer__increase {grid-area:plus;}
#tygh_container .sky-commerce-cart-items .ty-value-changer__decrease {grid-area:minus;}
#tygh_container .sky-commerce-cart-items .ty-value-changer a {position:static!important;width:28px!important;height:38px!important;line-height:38px!important;background:none!important;border:0!important;color:#43536c!important;font-size:18px!important;text-align:center;}
#tygh_container .sky-commerce-cart-items .ty-value-changer__input {grid-area:input;width:38px!important;height:38px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important;color:#142447!important;font-size:14px!important;text-align:center!important;}
#tygh_container .sky-commerce-cart-actions {display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:20px;padding:0 2px;}
#tygh_container .sky-commerce-cart-actions a {font-size:13px!important;color:#536279!important;}
#tygh_container .sky-commerce-cart-actions .sky-commerce-update {margin-left:auto;min-height:38px;border:1px solid #dce2ec!important;border-radius:8px!important;background:#fff!important;color:#142447!important;padding:8px 14px!important;font-size:13px!important;}
#tygh_container .sky-commerce-summary {position:sticky;top:24px;background:#fff;border:1px solid #e2e7ef;border-radius:14px;box-shadow:0 4px 18px #14244706;padding:24px;min-width:0;}
#tygh_container .sky-commerce-summary h2 {font-family:inherit!important;font-size:20px!important;font-weight:650!important;line-height:1.3!important;color:#142447!important;letter-spacing:-.3px;margin:0 0 20px!important;}
#tygh_container .sky-commerce-summary .ty-cart-total,#tygh_container .sky-commerce-summary .ty-cart-total__wrapper {float:none!important;width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important;border-radius:0!important;}
#tygh_container .sky-commerce-summary .ty-cart-statistic__item {display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:8px 0!important;line-height:1.5!important;color:#5c687a!important;font-size:14px!important;}
#tygh_container .sky-commerce-summary .ty-cart-statistic__title {width:auto!important;}
#tygh_container .sky-commerce-summary .ty-cart-statistic__value {float:none!important;min-width:0!important;text-align:right!important;}
#tygh_container .sky-commerce-summary .ty-cart-statistic__total-list {padding:15px 0 0!important;margin:12px 0 0!important;border-top:1px solid #e2e7ef;}
#tygh_container .sky-commerce-summary .ty-cart-statistic__total {display:block!important;}
#tygh_container .sky-commerce-summary .ty-cart-statistic__total-title {display:block!important;text-align:left!important;color:#142447!important;font-size:14px!important;font-weight:600!important;}
#tygh_container .sky-commerce-summary .ty-cart-statistic__total-value {display:block!important;float:none!important;text-align:left!important;margin:8px 0 0!important;color:#142447!important;}
#tygh_container .sky-commerce-summary .ty-cart-statistic__total-value .ty-price {font-size:26px!important;font-weight:700!important;letter-spacing:-.5px;}
#tygh_container .sky-commerce-summary-payment {margin-top:22px;border-top:1px solid #e2e7ef;padding-top:20px;}
#tygh_container .sky-commerce-payment-label {display:inline-block;font-size:12px;font-weight:650;letter-spacing:.15px;color:#142447;background:#f1f3f6;padding:6px 10px;border-radius:6px;}
#tygh_container .sky-commerce-summary-payment p {color:#5c687a!important;font-family:inherit!important;font-size:13px!important;line-height:1.65!important;margin:14px 0!important;}
#tygh_container .sky-commerce-continue {display:flex!important;align-items:center!important;justify-content:center!important;gap:12px;width:100%!important;box-sizing:border-box;min-height:48px!important;border-radius:9px!important;padding:12px 16px!important;background:#37475a!important;border:1px solid #37475a!important;color:white!important;font-size:14px!important;font-weight:650!important;text-decoration:none!important;box-shadow:none!important;line-height:1.45!important;}
#tygh_container .sky-commerce-continue:hover {background:#485a70!important;border-color:#485a70!important;color:white!important;}
#tygh_container .sky-commerce-existing-account {text-align:center;}
#tygh_container .sky-commerce-existing-account a {color:#485a70!important;font-weight:600;text-decoration:underline;text-underline-offset:3px;}
#tygh_container p.sky-commerce-summary-note {font-size:11px!important;line-height:1.6!important;color:#738095!important;margin:18px 0 0!important;}
#tygh_container .sky-commerce-payment-message {background:#f6f8fc;border-radius:8px;padding:12px;}
#tygh_container .sky-shop-cart :focus-visible {outline:3px solid #c4cbd5!important;outline-offset:3px;}
/* Native checkout retains all input names, validation and AJAX sections. */
#tygh_container:has(#litecheckout_form) {background:#f5f7fa;min-height:100vh;}
#tygh_container #litecheckout_form {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;color:#142447;padding-top:24px;}
#tygh_container #litecheckout_form .litecheckout__page-title {font-family:inherit!important;font-size:30px!important;line-height:1.25!important;font-weight:700!important;letter-spacing:-.5px;margin-bottom:26px!important;color:#142447!important;}
#tygh_container #litecheckout_form .litecheckout__step-title {font-family:inherit!important;font-size:19px!important;line-height:1.35!important;font-weight:650!important;color:#142447!important;margin-bottom:16px!important;}
#tygh_container #litecheckout_form .litecheckout__section {padding:22px!important;border:1px solid #e2e7ef!important;border-radius:12px!important;background:#fff!important;margin-bottom:16px!important;}
#tygh_container #litecheckout_form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea) {font-family:inherit!important;color:#142447!important;background:#fff!important;border:1px solid #ced7e4!important;border-radius:8px!important;font-size:15px!important;min-height:50px!important;box-shadow:none;}
#tygh_container #litecheckout_form :is(input,select,textarea):focus {border-color:#37475a!important;box-shadow:0 0 0 3px #37475a14!important;}
#tygh_container #litecheckout_form .litecheckout__input-label {font-family:inherit!important;color:#5c687a!important;font-size:13px!important;}
#tygh_container #litecheckout_form .ty-btn__primary {font-family:inherit!important;min-height:50px!important;border-radius:9px!important;background:#37475a!important;border:1px solid #37475a!important;color:#fff!important;font-size:15px!important;font-weight:650!important;box-shadow:none!important;}
#tygh_container #litecheckout_form .litecheckout__terms {font-size:13px;line-height:1.6;color:#5c687a;}
#tygh_container #litecheckout_form .litecheckout__shipping-method__wrapper {border-radius:10px!important;background:#fff!important;border-color:#dce3ed!important;}
#tygh_container #litecheckout_form .litecheckout__shipping-method__radio:checked+.litecheckout__shipping-method__wrapper {background:#f3f4f6!important;border-color:#37475a!important;box-shadow:inset 0 0 0 1px #37475a!important;}
#tygh_container:has(#litecheckout_form) .ty-checkout-summary {border:1px solid #e2e7ef!important;border-radius:12px!important;background:white!important;padding:22px!important;box-shadow:0 4px 18px #14244706;}
#tygh_container:has(#litecheckout_form) .ty-checkout-summary__total {background:#f3f6fb!important;color:#142447!important;}
#tygh_container:has(#litecheckout_form) .ty-footer-copyright {display:none!important;}
@media(max-width:1080px){
 #tygh_container .sky-commerce-cart-layout {grid-template-columns:minmax(0,1fr) 310px;gap:18px;}
 #tygh_container .sky-commerce-summary {padding:20px;}
 #tygh_container .sky-commerce-cart-items .ty-cart-content th,#tygh_container .sky-commerce-cart-items .ty-cart-content td {padding-left:9px!important;padding-right:9px!important;}
 #tygh_container .sky-commerce-cart-items .ty-cart-content__description {min-width:110px;}
}
@media(max-width:900px){
 #tygh_container .sky-commerce-cart-layout {grid-template-columns:minmax(0,1fr);gap:24px;}
 #tygh_container .sky-commerce-summary {position:static;}
}
@media(max-width:600px){
 #tygh_container .sky-shop-cart {padding:18px 0 30px;}
 #tygh_container .sky-commerce-heading {margin-bottom:20px!important;}
 #tygh_container .sky-commerce-heading h1 {font-size:27px!important;}
 #tygh_container .sky-commerce-heading>p:last-child {font-size:14px!important;}
 #tygh_container .sky-commerce-cart-items .ty-cart-content,#tygh_container .sky-commerce-cart-items .ty-cart-content tbody {display:block!important;}
 #tygh_container .sky-commerce-cart-items .ty-cart-content thead {display:none!important;}
 #tygh_container .sky-commerce-cart-items .ty-cart-content__row {display:grid!important;grid-template-columns:76px minmax(0,1fr);column-gap:16px;padding:20px 16px!important;border-bottom:1px solid #e2e7ef!important;}
 #tygh_container .sky-commerce-cart-items .ty-cart-content__row:last-child {border-bottom:0!important;}
 #tygh_container .sky-commerce-cart-items .ty-cart-content td {display:block!important;padding:0!important;border:0!important;width:auto!important;min-width:0!important;}
 #tygh_container .sky-commerce-cart-items .ty-cart-content td::before {display:none!important;}
 #tygh_container .sky-commerce-cart-items .ty-cart-content__image-block {grid-column:1;grid-row:1 / span 3;}
 #tygh_container .sky-commerce-cart-items .ty-cart-content__description {grid-column:2;grid-row:1;padding-bottom:14px!important;}
 #tygh_container .sky-commerce-cart-items .ty-cart-content td[id^="price_display_update_"] {display:none!important;}
 #tygh_container .sky-commerce-cart-items .ty-cart-content__qty {grid-column:2;grid-row:2;}
 #tygh_container .sky-commerce-cart-items .ty-value-changer {margin:0!important;}
 #tygh_container .sky-commerce-cart-items .ty-cart-content td[id^="price_subtotal_update_"] {grid-column:2;grid-row:3;margin-top:12px!important;}
 #tygh_container .sky-commerce-cart-actions {gap:14px 18px;}
 #tygh_container .sky-commerce-summary {padding:22px;}
 #tygh_container .sky-commerce-cart-items .ty-cart-content__product-delete {float:right;}
 #tygh_container #litecheckout_form .litecheckout__section {padding:16px!important;}
}
@media(prefers-reduced-motion:reduce){#tygh_container .sky-shop-cart *{scroll-behavior:auto;transition:none!important;}}
/* Restore these explicit registration calls to action from the old global account-link hiding rule. */
#tygh_container #cart_main.sky-shop-cart a.sky-commerce-continue {display:flex!important;}
#tygh_container .sky-commerce-cart-actions .ty-btn {background:#fff!important;color:#43536a!important;border:1px solid #dce2ec!important;border-radius:8px!important;padding:9px 14px!important;font-size:13px!important;font-weight:500!important;}

@media(max-width:600px){
 #tygh_container .sky-commerce-cart-items .ty-table__responsive-header {display:none!important;}
 #tygh_container .sky-commerce-cart-items .ty-table__responsive-content {display:block!important;width:auto!important;min-width:0!important;padding:0!important;float:none!important;}
}

/* Shared storefront search adopts the same navy; account pages retain their existing styling. */
#tygh_container .tygh-header .ty-search-magnifier {background:#37475a!important;color:#fff!important;box-shadow:none!important;}
#tygh_container .tygh-header .ty-search-magnifier .ty-icon {color:#fff!important;}

/* Empty cart uses the same navy and white system as populated carts. */
#tygh_container #cart_main.sky-shop-cart > .sky-cart-blank {
 --sky-blue:#37475a;--sky-blue-hover:#485a70;--sky-tint:#fff;
 box-sizing:border-box;display:flex;align-items:center;gap:28px;
 min-height:250px;width:100%;padding:44px 48px;margin:0;
 border:1px solid #e2e7ef;border-radius:14px;background:#fff!important;
 box-shadow:0 4px 18px #14244704;
}
#tygh_container #cart_main .sky-cart-blank__content {min-width:0;}
#tygh_container #cart_main #sky-cart-title {margin:0 0 12px!important;font:650 28px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;letter-spacing:-.5px;color:#142447!important;}
#tygh_container #cart_main .sky-cart-blank__description {font:400 15px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;color:#637084!important;margin:0 0 24px!important;}
#tygh_container #cart_main .sky-cart-blank__icon {box-sizing:border-box;display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;padding:0;border:1px solid #e2e7ef;border-radius:14px;background:#f6f7f9!important;color:#37475a!important;font-size:29px;line-height:1;}
#tygh_container #cart_main .sky-cart-blank__actions {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0;}
#tygh_container #cart_main .sky-cart-blank__actions > .ty-btn__primary {box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;height:48px;margin:0!important;padding:12px 22px!important;border:1px solid #37475a!important;border-radius:8px!important;background:#37475a!important;color:#fff!important;font:600 14px/22px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;text-decoration:none!important;box-shadow:none!important;}
#tygh_container #cart_main .sky-cart-blank__actions > .ty-btn__primary:hover {background:#485a70!important;border-color:#485a70!important;}
#tygh_container #cart_main .sky-cart-blank__link {box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;height:48px;min-width:112px;padding:12px 20px!important;border:1px solid #d5dce6;border-radius:8px;background:#fff;color:#142447!important;font:500 14px/22px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;text-decoration:none!important;}
#tygh_container #cart_main .sky-cart-blank__link:hover {background:#f6f7f9;}
#tygh_container:has(#cart_main) #catalog-help {box-sizing:border-box;max-width:1280px;margin:0 auto 24px;padding:24px;background:#fff!important;border:1px solid #e2e7ef;border-radius:12px;}
#tygh_container:has(#cart_main) #catalog-help a {color:#142447!important;}
@media(max-width:600px){
 #tygh_container #cart_main.sky-shop-cart > .sky-cart-blank {flex-direction:column;align-items:flex-start;gap:20px;min-height:0;padding:28px 24px;}
 #tygh_container #cart_main #sky-cart-title {font-size:25px!important;line-height:1.3!important;letter-spacing:-.3px;}
 #tygh_container #cart_main .sky-cart-blank__description {font-size:14px!important;margin-bottom:22px!important;}
 #tygh_container #cart_main .sky-cart-blank__actions {width:100%;gap:10px;}
 #tygh_container #cart_main .sky-cart-blank__actions > .ty-btn__primary {padding:12px 18px!important;}
 #tygh_container #cart_main .sky-cart-blank__link {min-width:96px;padding:12px 16px!important;}
 #tygh_container:has(#cart_main) #catalog-help {padding:20px;}
}
@media(max-width:359px){#tygh_container #cart_main .sky-cart-blank__actions {display:grid;grid-template-columns:1fr;width:100%;}}

/* Continue shopping uses the same navy in both empty and populated carts. */
#tygh_container .sky-commerce-cart-actions > a.ty-btn {background:#37475a!important;border-color:#37475a!important;color:#fff!important;}
#tygh_container .sky-commerce-cart-actions > a.ty-btn:hover {background:#485a70!important;border-color:#485a70!important;color:#fff!important;}

/* Ordinary native frontend notices only. Extended I dialogs are handled separately.
   No timer, state, message, key, dismiss action or native display flag is replaced. */
.sky-feedback-front .sky-feedback-region {
    box-sizing: border-box;
    position: fixed;
    top: var(--sky-feedback-top, 128px);
    right: max(20px, env(safe-area-inset-right));
    z-index: 1023;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(380px, calc(100vw - 40px));
    min-width: 0;
    max-width: 380px;
    pointer-events: none;
}
.sky-feedback-front .notification-content.sky-feedback-toast {
    --sky-feedback-accent: #37475a;
    --sky-feedback-icon-tint: #f0f3f8;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 16px 46px 16px 48px;
    border: 1px solid #dce3ed;
    border-left: 3px solid var(--sky-feedback-accent);
    border-radius: 10px;
    background: #fff;
    color: #3e4d62;
    box-shadow: 0 8px 26px #37475a1a;
    font: 400 13px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-shadow: none;
    overflow-wrap: anywhere;
    pointer-events: auto;
    /* Suppress only native duplicate-message blinking. Native close still hides/removes. */
    opacity: 1 !important;
    animation: sky-feedback-enter 140ms ease-out;
}
.sky-feedback-front .sky-feedback-toast.alert-warning {
    --sky-feedback-accent: #a56a12;
    --sky-feedback-icon-tint: #fff7e9;
}
.sky-feedback-front .sky-feedback-toast.alert-error {
    --sky-feedback-accent: #bd394a;
    --sky-feedback-icon-tint: #fff0f2;
}
.sky-feedback-front .sky-feedback-toast.alert-info {
    --sky-feedback-accent: #355f98;
    --sky-feedback-icon-tint: #eef4fc;
}
.sky-feedback-front .sky-feedback-toast::before {
    content: "i";
    box-sizing: border-box;
    position: absolute;
    top: 17px;
    left: 15px;
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--sky-feedback-icon-tint);
    color: var(--sky-feedback-accent);
    font: 700 13px/1 Arial, Helvetica, sans-serif;
}
.sky-feedback-front .sky-feedback-toast.alert-success::before { content: "✓"; }
.sky-feedback-front .sky-feedback-toast:is(.alert-warning, .alert-error)::before { content: "!"; }
.sky-feedback-front .sky-feedback-toast > strong {
    display: block;
    margin: 0 0 3px;
    color: #37475a;
    font: 650 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.sky-feedback-front .sky-feedback-toast .cm-notification-close {
    box-sizing: border-box;
    position: absolute;
    top: 7px;
    right: 7px;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #637086;
    font: 400 25px/36px Arial, Helvetica, sans-serif;
    text-align: center;
    text-shadow: none;
    opacity: 1;
    cursor: pointer;
}
.sky-feedback-front .sky-feedback-toast .cm-notification-close:hover { background: #f0f3f8; color: #37475a; }
.sky-feedback-front .sky-feedback-toast__actions { margin-top: 8px; }
.sky-feedback-front .sky-feedback-toast a:not(.ty-btn) {
    color: #37475a;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sky-feedback-front .sky-feedback-toast a.sky-feedback-toast__link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    font-size: 13px;
    font-weight: 650;
}
.sky-feedback-front .sky-feedback-toast :is(a, button):focus-visible { outline: 2px solid #355f98; outline-offset: 2px; }
/* Form errors retain the native dialog container and its stacking/context. */
.sky-feedback-front .cm-notification-container-dialog .sky-feedback-toast {
    width: 100%;
    max-width: none;
    margin-bottom: 8px;
    box-shadow: 0 3px 12px #37475a14;
}
@keyframes sky-feedback-enter {
    from { transform: translateY(-4px); }
    to { transform: translateY(0); }
}
@media (max-width: 600px) {
    .sky-feedback-front .sky-feedback-region {
        right: max(12px, env(safe-area-inset-right));
        width: min(380px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        gap: 8px;
    }
    .sky-feedback-front .notification-content.sky-feedback-toast { padding: 15px 43px 14px 44px; }
    .sky-feedback-front .sky-feedback-toast::before { top: 16px; left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .sky-feedback-front .notification-content.sky-feedback-toast { animation: none; transition: none; transform: none; }
}

/* Storefront dialogs only. Full-page sign-in/registration and the department drawer retain their existing design. */
body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) {
    --sky-access-background: #fff;
    --sky-access-surface: #f4f6f9;
    --sky-access-input: #fff;
    --sky-access-border: #c4cedb;
    --sky-access-text: #37475a;
    --sky-access-muted: #526178;
    --sky-access-accent: #37475a;
    --sky-access-link: #2454a6;
    --sky-access-error: #a42636;
    box-sizing: border-box !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    padding: 0 !important;
    border: 1px solid #c4cedb !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #37475a !important;
    color-scheme: light !important;
    box-shadow: 0 18px 56px rgb(12 22 41 / 24%) !important;
    overflow: hidden;
}

/* Product/image previewers retain their native large viewport; ordinary dialogs share one responsive width. */
body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu, #product_quick_view, .ty-quick-view-container, .ty-previewer__container)):not(.ty-owl-previewer__dialog) {
    width: clamp(280px, calc(100vw - 32px), 520px) !important;
    min-width: 0 !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .ui-dialog-titlebar {
    box-sizing: border-box !important;
    position: relative;
    min-height: 58px;
    margin: 0 !important;
    padding: 17px 60px 17px 24px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #37475a !important;
    color: #fff !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .ui-dialog-title {
    float: none !important;
    display: block;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .ui-dialog-titlebar-close {
    box-sizing: border-box;
    top: 50% !important;
    right: 16px !important;
    width: 32px !important;
    height: 32px !important;
    margin: -16px 0 0 !important;
    padding: 0 !important;
    border: 1px solid rgb(255 255 255 / 36%) !important;
    border-radius: 6px;
    background: transparent !important;
    color: #fff !important;
    opacity: 1 !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .ui-dialog-titlebar-close :is(.ui-icon, svg),
body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .ui-dialog-titlebar-close .ui-icon::before {
    color: #fff !important;
    fill: currentColor;
    opacity: 1 !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .ui-dialog-titlebar-close:hover {
    background: rgb(255 255 255 / 12%) !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .ui-dialog-content {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: calc(100vh - 112px) !important;
    max-height: calc(100dvh - 112px) !important;
    height: auto !important;
    margin: 0 !important;
    padding: 24px !important;
    background: #fff !important;
    color: #37475a !important;
    overflow: auto !important;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) :is(.ty-login-popup, .ty-vendor-communication-login, .ty-login, form) {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    background: #fff !important;
    color: #37475a !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) :is(.ty-login-popup, .ty-vendor-communication-login, .ty-login) {
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) :is(label, legend, .ty-login__remember-me-label, .ty-license-agreement__label, .ty-login-popup__description, .ty-vendor-communication-product-info-header) {
    color: #37475a !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) :is(.ty-login-popup__description, .ty-control-group) {
    margin: 0 0 18px !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="search"], input[type="number"], input[type="url"], select, textarea) {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 48px !important;
    padding: 11px 12px;
    border: 1px solid #c4cedb !important;
    border-radius: 6px;
    background: #fff !important;
    color: #37475a !important;
    box-shadow: none;
    font-size: 16px;
    line-height: 24px;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="search"], input[type="number"], input[type="url"], select) {
    height: 48px !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) textarea {
    min-height: 144px !important;
    resize: vertical;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) :is(input, textarea)::placeholder {
    color: #65748b !important;
    opacity: 1;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .cs-input-password {
    display: flex;
    width: 100% !important;
    min-width: 0;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .cs-input-password__input {
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    border-radius: 6px 0 0 6px !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .cs-input-password__toggle-button {
    box-sizing: border-box;
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    border: 1px solid #c4cedb !important;
    border-left: 0 !important;
    border-radius: 0 6px 6px 0 !important;
    background: #fff !important;
    color: #37475a !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .buttons-container {
    box-sizing: border-box !important;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    clear: both;
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .buttons-container > .ty-float-right,
body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .ty-login__remember-me {
    box-sizing: border-box;
    float: none !important;
    flex: 1 1 100%;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .ty-login__remember-me-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    line-height: 20px;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) :is(input[type="checkbox"], input[type="radio"]) {
    box-sizing: border-box;
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: #37475a;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) :is(.ty-btn__primary, button[type="submit"], input[type="submit"]) {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 12px 16px !important;
    border: 1px solid #37475a !important;
    border-radius: 6px;
    background: #37475a !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    text-align: center;
    white-space: normal;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) :is(.ty-btn__primary, button[type="submit"], input[type="submit"]):hover {
    background: #485a70 !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) :is(.ty-btn__secondary, .ty-btn__tertiary) {
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #c4cedb;
    border-radius: 6px;
    background: #fff !important;
    color: #37475a !important;
    box-shadow: none;
    white-space: normal;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) :is(.ty-password-forgot__a, .ty-license-agreement__link, .ty-login-reglink a, .ty-login-info a) {
    color: #2454a6 !important;
}

/* Restore the existing native register link inside the sign-in dialog only. */
body:has(#tygh_container) .ui-dialog:has(.ty-login-popup):not(:has(#sky_department_menu)) .ty-login-reglink {
    display: block !important;
    visibility: visible !important;
    margin: 0 0 18px;
    text-align: center;
}

body:has(#tygh_container) .ui-dialog:has(.ty-login-popup):not(:has(#sky_department_menu)) .ty-login-reglink__a {
    display: inline-flex !important;
    visibility: visible !important;
    align-items: center;
    min-height: 32px;
    max-width: 100%;
    color: #2454a6 !important;
    text-decoration: underline;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) :is(.help-inline, .ty-error-text, .ty-control-group__error) {
    color: #a42636 !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .cm-failed-field {
    border-color: #a42636 !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) :is(a, button, input, select, textarea):focus-visible {
    outline: 2px solid #4169e1 !important;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .ui-dialog-titlebar {
        padding-left: 18px !important;
    }
    body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .ui-dialog-content {
        padding: 20px 18px !important;
    }
}

/* Native dialog JS inserts an object wrapper and an absolutely positioned picker footer.
   Keep both in normal flow; the outer ui-dialog-content owns vertical scrolling. */
body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .ui-dialog-content:has(> .object-container) {
    padding: 0 !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .object-container {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 24px !important;
    overflow: visible !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) form {
    padding: 0 !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .buttons-container-picker {
    box-sizing: border-box !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 20px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
}

body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .buttons-container-picker > div,
body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .buttons-container-picker .buttons-container {
    margin: 0 !important;
}


@media (max-width: 480px) {
    body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .ui-dialog-content:has(> .object-container) { padding: 0 !important; }
    body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu)) .object-container { padding: 20px 18px !important; }
}

/* Keep ordinary dialogs inset evenly when native resize positioning snaps to x=0. */
@media(max-width:600px){
 body:has(#tygh_container) .ui-dialog:not(:has(#sky_department_menu, #product_quick_view, .ty-quick-view-container, .ty-previewer__container)):not(.ty-owl-previewer__dialog){left:16px!important;right:auto!important;margin-left:0!important;margin-right:0!important;}
}

/* Native CS type-I notifications are standalone overlays, not ui-dialog elements. */
body:has(#tygh_container) .notification-content-extended {
    box-sizing: border-box !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    width: clamp(280px, calc(100vw - 32px), 520px) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translate(-50%, -50%);
    border: 1px solid #c4cedb !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #37475a !important;
    color-scheme: light;
    box-shadow: 0 18px 56px rgb(12 22 41 / 24%) !important;
    overflow: auto !important;
    overscroll-behavior: contain;
}

body:has(#tygh_container) .notification-content-extended > h1 {
    box-sizing: border-box !important;
    position: relative;
    width: 100% !important;
    min-height: 58px;
    margin: 0 !important;
    padding: 17px 60px 17px 24px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #37475a !important;
    color: #fff !important;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere;
    text-overflow: clip !important;
}

body:has(#tygh_container) .notification-content-extended > h1 .cm-notification-close {
    box-sizing: border-box;
    position: absolute;
    top: 50% !important;
    right: 16px !important;
    width: 28px !important;
    height: 28px !important;
    margin: -14px 0 0 !important;
    color: #fff !important;
    line-height: 28px;
    text-align: center;
    opacity: 1 !important;
}

body:has(#tygh_container) .notification-content-extended > h1 .cm-notification-close::before {
    color: #fff !important;
}

body:has(#tygh_container) .notification-content-extended .notification-body-extended {
    box-sizing: border-box !important;
    width: 100% !important;
    max-height: calc(100vh - 112px) !important;
    max-height: calc(100dvh - 112px) !important;
    margin: 0 !important;
    padding: 20px 24px !important;
    background: #fff !important;
    color: #37475a !important;
    overflow: auto !important;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
}

body:has(#tygh_container) .notification-content-extended :is(.ty-product-notification__body, .ty-product-notification__buttons) {
    box-sizing: border-box;
    max-width: 100%;
    background: #fff !important;
    color: #37475a !important;
}

body:has(#tygh_container) .notification-content-extended .ty-btn__primary {
    box-sizing: border-box;
    min-height: 44px;
    max-width: 100%;
    border-color: #37475a !important;
    background: #37475a !important;
    color: #fff !important;
    box-shadow: none;
    white-space: normal;
}

body:has(#tygh_container) .notification-content-extended :is(.ty-btn__secondary, .ty-btn__tertiary) {
    max-width: 100%;
    background: #fff !important;
    color: #37475a !important;
    white-space: normal;
}

@media (max-width: 480px) {
    body:has(#tygh_container) .notification-content-extended > h1 {
        padding-left: 18px !important;
    }
    body:has(#tygh_container) .notification-content-extended .notification-body-extended {
        padding: 20px 18px !important;
    }
}

/* Keep native vendor listings centered after removing the sidebar. */
#tygh_main_container .content-grid.ty-cs-controller-companies.ty-cs-mode-products .main-content-grid.span16 {
    --microstore-card-width: calc((100% - 60px) / 4);
    --microstore-card-gap: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 32px);
    float: none;
}

#tygh_main_container .ty-cs-controller-companies.ty-cs-mode-products .main-content-grid.span16 div[id^="products_search_"] .grid-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--microstore-card-gap);
}

#tygh_main_container .ty-cs-controller-companies.ty-cs-mode-products .main-content-grid.span16 div[id^="products_search_"] .grid-list::before,
#tygh_main_container .ty-cs-controller-companies.ty-cs-mode-products .main-content-grid.span16 div[id^="products_search_"] .grid-list::after {
    content: none;
}

#tygh_main_container .ty-cs-controller-companies.ty-cs-mode-products .main-content-grid.span16 div[id^="products_search_"] .grid-list > [class^="ty-column"] {
    flex: 0 0 min(264px, var(--microstore-card-width));
    min-width: 0;
    width: auto;
    margin: 0;
}

#tygh_main_container .ty-cs-controller-companies.ty-cs-mode-products .main-content-grid.span16 div[id^="products_search_"] .grid-list > [class^="ty-column"]:not(:has(.ty-grid-list__item)) {
    display: none;
}

@media (max-width: 1023px) {
    #tygh_main_container .content-grid.ty-cs-controller-companies.ty-cs-mode-products .main-content-grid.span16 {
        --microstore-card-width: calc((100% - 40px) / 3);
    }
}

@media (max-width: 767px) {
    #tygh_main_container .content-grid.ty-cs-controller-companies.ty-cs-mode-products .main-content-grid.span16 {
        --microstore-card-width: calc((100% - 12px) / 2);
        --microstore-card-gap: 12px;
    }
}

@media (max-width: 359px) {
    #tygh_main_container .content-grid.ty-cs-controller-companies.ty-cs-mode-products .main-content-grid.span16 {
        --microstore-card-width: 100%;
    }
}
