.hidden {
    display: none !important;
}

a, a:hover {
    color: var(--cText);
}

/* Links iOS creates by itself. Its data detectors wrap bare phone numbers,
   dates, addresses and emails in an <a> and paint it system blue from the UA
   stylesheet, which the rule above cannot outrank — the reason phone numbers in
   CMS copy and the Y-m-d delivery dates read blue on iPhone and nowhere else.
   The `telephone=no` meta in head.tpl stops Safari making them at all; this
   catches the in-app browsers (Facebook, Instagram, Gmail), which ignore the
   meta and detect dates and addresses too. !important is required: the UA rule
   for these elements outranks ordinary author declarations. */
a[x-apple-data-detectors] {
    color: inherit !important;
    text-decoration: none !important;
}

/* Form controls do not inherit colour — the UA sets it, and on iOS that default
   is the system blue rather than the near-black `buttontext` every desktop
   browser uses. The theme has ~77 bare <button>s whose colour is never
   declared, so they read blue on iPhone and black everywhere else. Saying
   `inherit` puts them back on the page's ink.
   Text inputs and textareas are left out on purpose: iOS renders their value
   black like everyone else, and `inherit` there would paint a field's text with
   its panel's ink — white on a white input inside any dark block. Likewise not
   `-webkit-text-fill-color`, which is what iOS uses to grey out disabled
   controls; forcing it would make disabled fields read as live. */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
select {
    color: inherit;
}

.hidden-sm-up-flex,
.hidden-sm-up {
    display: none;
}

.flex {
    display: flex;
}

#blockcart-modal .frn-product-item__add-to-favorite,
#blockcart-modal .frn-product-item__sub-icons {
    display: none;
}

#quantity_wanted {
    background-color: #fff;
    padding: 0 30px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('../img/icons/arrow-down.svg');
    background-repeat: no-repeat;
    background-position: 80% center;
    /* Position icon closer to center */
    background-size: 12px 7px;
    padding-right: 30px;
    padding-top: 5px;
}

.product-variants .frn-photos__item .frn-photos__color-sample {
    width: 100%;
    aspect-ratio: 288 / 228;
    display: block;
}

.frn-photos__item.js-variant-photo {
    border: 1px solid #eee;
    position: relative;
}

/* === OOS Variant States === */

/* Variant photo slides - OOS dimming */
.frn-photos__item--oos {
    opacity: 0.5;
    filter: grayscale(40%);
    pointer-events: auto;
}

/* OOS badge on variant photo slides */
.frn-photos__oos-badge {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(220, 53, 69, 0.85);
    color: #fff;
    font-size: var(--fz-9);
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    z-index: 2;
}

.frn-variants-grid__item--active .frn-product-item__image {
    z-index: var(--zLevel1);
    position: relative;
}

.frn-variants-grid__item--active .frn-product-item__image:before {
    content: "";
    z-index: var(--zLevel2);
    box-sizing: border-box;
    border-bottom: 3px solid var(--cDanger);
    height: 3px;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Modal variant cards - OOS state */
.frn-variants-grid__item--oos {
    opacity: 0.55;
    filter: grayscale(30%);
    border-color: #ddd !important;
}

.frn-variants-grid__item--oos:hover {
    opacity: 0.75;
    filter: grayscale(10%);
}

/* OOS availability label inside modal cards */
.frn-product-item__availability--oos {
    color: #dc3545;
    font-weight: 500;
}

/* Remove underline from availability (clock icon + text) */
.frn-product-item__availability,
.frn-product-item__availability img,
.frn-product-item__availability span {
    text-decoration: none;
    border-bottom: none;
}

/* Add-to-cart OOS message */
.frn-add-to-cart__oos-message {
    color: #dc3545;
    font-size: var(--fz-13);
    font-weight: 500;
    margin-top: 8px;
    padding: 6px 0;
}

.frn-product-information-form__action button {
    width: 40%;
    float: right;
}

.frn-product-information-form__field label {
    line-height: 14px;
}

.frn-product-item-list__content {
    display: flex;
    padding-top: var(--spaceTopXl);
}
#product .frn-product-item-list__content,
#checkout .frn-product-item-list__content,
#my-account .frn-product-item-list__content,
#addresses .frn-product-item-list__content,
#identity .frn-product-item-list__content,
#order-slip .frn-product-item-list__content,
#discount .frn-product-item-list__content,
#module-blockwishlist-lists .frn-product-item-list__content,
#module-psgdpr-gdpr .frn-product-item-list__content,
#search .frn-product-item-list__content,
#cms .frn-product-item-list__content,
#contact .frn-product-item-list__content,
#cart .frn-product-item-list__content {
    border-top: unset;
}

#index .frn-product-item-list__content {
    border-top: unset;
    padding-top: unset;
    margin-top: unset !important;
}

.js-content-wrapper.left-column {
    width: 100%;
    width: -webkit-fill-available;
}

/* The listing's Bootstrap columns (col-md-12 / col-lg-3 + col-lg-9) carry a 15px
   gutter on both sides, which other page layouts don't. Drop the outer ones so
   filters and grid line up with the heading and category strip above; the 30px
   between the two columns stays. Below 768 mobile.css already zeroes them. */
@media (min-width: 768px) {
    #left-column {
        padding-left: 0;
    }

    .js-content-wrapper.left-column {
        padding-right: 0;
    }
}

/* Stacked full-width below lg: no inner gutter either. */
@media (min-width: 768px) and (max-width: 991.98px) {
    #left-column {
        padding-right: 0;
    }

    .js-content-wrapper.left-column {
        padding-left: 0;
    }
}

.frn-product-information-form .frn-heading.frn-heading--h2 {
    font-family: var(--ffPrimary);
    font-weight: 600;
    font-size: var(--fz-24);
    color: #1a1b1a;
}

.frn-product-information-form .frn-product-information-form__action .frn-button__text,
.frn-product-information-form .frn-input__control,
.frn-product-information-form .frn-input__label {
    font-family: var(--ffPrimary);
    font-weight: 400;
    font-size: var(--fz-14);
    color: #1a1b1a;
}

.frn-product-information-form .frn-product-information-form__action .frn-button__text {
    color: #fff;
    font-size: var(--fz-16);
    font-weight: 500;
}

.frn-product-information-form .frn-input__control--textarea {
    padding-top: 10px;
}

.frn-cart__connected-items .frn-top-offers .swiper-button-prev,
.frn-cart__connected-items .frn-top-offers .swiper-button-next {
    top: calc(50% + 40px);
}

/* Fix only the height so any uploaded logo keeps its own aspect ratio;
   the header row height stays stable regardless of the file's shape */
#_desktop_logo .logo.img-fluid {
    width: auto;
    height: 27px;
    max-width: 100%;
}

@media (max-width: 978.98px) {
    #_desktop_logo .logo.img-fluid {
        height: 20px;
    }
}

.top-menu.frn-menu-desctop>li {
    height: 54px;
    display: flex;
    align-items: center;
}

.card {
    border: unset;
}

/* Password toggle button styles */
.frn-input__bottom {
    position: relative;
}

.frn-input__control--password {
    padding-right: 45px;
}

.frn-input__toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: color 0.2s ease;
}

.frn-input__toggle-password:hover {
    color: #495057;
}

.frn-input__toggle-password:focus {
    outline: none;
}

.frn-input__toggle-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.frn-input__toggle-icon--show {
    display: none;
}

#password #blockEmailSubscription_displayCustomerLoginFormAfter {
    width: 100%;
}

a.frn-login__tabs-item:hover {
    color: var(--cBlack);
    text-decoration: none;
}

a.frn-login__tabs-item.frn-login__tabs-item--active:hover {
    color: var(--cWhite);
    background-color: #2f3232e6;
    text-decoration: none;
}

#checkout .frn-add-address a,
#checkout .frn-text-block a[data-link-action="different-invoice-address"] {
    text-decoration: none;
}

#checkout .frn-add-address a:hover span,
#checkout .frn-text-block a[data-link-action="different-invoice-address"]:hover span {
    color: var(--cDanger);
}

#cms .faq .frn-text-block__text {
    padding-left: unset;
    padding-right: unset;
}

.frn-cms__text .frn-text-block p,
.frn-cms__text .frn-text-block ul,
.frn-cms__text .frn-text-block ol {
    font-family: var(--ffPrimary);
    font-weight: 400;
    font-size: var(--fz-14);
    line-height: 24px;
}

.frn-content-heading.frn-page-title .frn-heading {
    font-weight: 600;
    font-size: var(--fz-32)!important;
    line-height: 100%;
}

.frn-content-heading .frn-heading.frn-heading--h1 {
    font-weight: 600;
    font-size: var(--fz-24);
    line-height: 100%;
}

.frn-content-heading .frn-heading.frn-heading--h2 {
    font-weight: 600;
    font-size: var(--fz-20);
    line-height: 100%;

}

.frn-content-block__actions_tablet,
.social-sharing {
    display: none;
}

/* Search modal content layout. The modal is a flex column with its own height
   cap per breakpoint (JS for the desktop dropdown, viewport height on
   mobile/tablet), so the results region simply takes what is left after the
   input and the action footer — guessing a chrome height in a calc() here
   used to clip the second row of results. */
.frn-top-search-mobile__content .frn-top-search-mobile__content-data {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* Spec tooltips */

.frn-tooltip-trigger {
    position: relative;
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
}

.frn-tooltip__icon {
    display: inline;
}

.frn-top-offers .swiper-button-prev {
    left: -15px;
}

.frn-top-offers .swiper-button-next {
    right: -15px;
}
#product .frn-cart__connected-items .frn-top-offers .swiper-button-prev,
#product .frn-cart__connected-items .frn-top-offers .swiper-button-next {
    top: calc(50% + 45px);
}

/* === GDPR Page === */

/* Style GDPR data export buttons as brand buttons */
#module-psgdpr-gdpr .psgdprgetdatabtn17,
#module-psgdpr-gdpr .page_content .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Wider than either label, so the PDF and CSV buttons match. */
    min-width: 240px;
    height: 48px;
    background-color: #1a1b1a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 24px !important;
    text-decoration: none;
    font-size: var(--fz-14);
    font-weight: 500;
    font-family: var(--ffPrimary);
    /* psgdpr floats the buttons and gives them 10px side margins, which glues
       them to the paragraph above and pulls them off the panel's text edge */
    margin-top: 16px;
    margin-bottom: 0;
    margin-left: 12px;
    margin-right: 0;
    text-transform: none;
    letter-spacing: 0;
    padding: 0 24px;
}

#module-psgdpr-gdpr .psgdprgetdatabtn17:hover,
#module-psgdpr-gdpr .page_content .btn-primary:hover {
    background-color: #2f3232e6 !important;
    color: #fff !important;
    text-decoration: none;
}

/* Style GDPR footer links as brand button */
#module-psgdpr-gdpr .page-footer .account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background-color: #1a1b1a;
    color: #fff;
    border-radius: 24px;
    text-decoration: none;
    font-size: var(--fz-14);
    font-weight: 500;
    font-family: var(--ffPrimary);
    padding: 0 32px;
}

#module-psgdpr-gdpr .page-footer .account-link:hover {
    background-color: #2f3232e6;
    color: #fff;
    text-decoration: none;
}

#module-psgdpr-gdpr .page-footer .account-link i {
    display: none;
}

#module-psgdpr-gdpr .page-footer .account-link span {
    color: #fff;
    height: auto;
    line-height: normal !important;
}

/* Every red notice on the storefront reads as the cart's warning note
   (.frn-cart-page__delivery-manual-item--invalid, see components/cart.css):
   Bootstrap's `.alert.alert-danger` — form errors, the #notifications strip,
   "no carriers"/"no payment methods", voucher errors, add-to-cart failures —
   and PrestaShop's `Module::displayError()` box
   (`.bootstrap > .module_error…`), which the one-page checkout re-emits from
   JS into #onepagecheckout-information-errros.
   The prefixed twins buy specificity and nothing else: verify.tpl inlines a
   copy of the .module_error selectors in a <style> block that is later in the
   document, and onepagecheckout.css reaches the voucher error three classes
   deep. */
.alert.alert-danger,
.bootstrap .module_error.alert.alert-danger,
.ets_opc_errors_wrapper .bootstrap .module_error.alert.alert-danger,
#form_ets_onepagecheckout .promo-code .alert.alert-danger {
    /* The reference's --cDanger (#ee4719) tints at 5% and 18%, flattened over
       white. Opaque rather than translucent because these alerts also land on
       coloured panels — the newsletter block's mint would show straight
       through and turn the "red" note green. */
    background: #fef6f4;
    border: 1px solid #fcded6;
    border-left: 3px solid var(--cDanger);
    border-radius: var(--bdrsPrimarySm);
    box-sizing: border-box;
    color: var(--cTextLight2);
    /* The product page's #product-availability is a <span> that custom.js
       turns into an alert; padding on an inline box would spill over the
       lines around it. */
    display: block;
    font-size: var(--fz-14);
    line-height: 1.5;
    margin-bottom: 15px;
    /* 18px inset + 14px icon + 11px gap on the left, close button on the right. */
    padding: 15px 40px 15px 43px;
    position: relative;
}

/* Stands in for the reference's <img>: same artwork, height-matched to the
   14px text and centred on its first line box however many lines it wraps to. */
.alert.alert-danger::before,
.bootstrap .module_error.alert.alert-danger::before,
.ets_opc_errors_wrapper .bootstrap .module_error.alert.alert-danger::before,
#form_ets_onepagecheckout .promo-code .alert.alert-danger::before {
    background: url('../img/icons/i-circle-danger.svg') no-repeat center / contain;
    content: "";
    height: var(--fz-14);
    left: 18px;
    position: absolute;
    top: calc(15px + var(--fz-14) * .25);
    width: var(--fz-14);
}

/* The checkout skin rounds every .alert to --bdrsPrimary from an id-scoped
   rule (components/ets-onepagecheckout-modern.css), which outranks the group
   above; the group's 4px needs the same scope to land there. */
#form_ets_onepagecheckout.ets-opc-modern .alert.alert-danger {
    border-radius: var(--bdrsPrimarySm);
}

/* form-errors.tpl hangs the alert on each <li> of a plain <ul>, so the card
   would otherwise carry a bullet. */
li.alert.alert-danger {
    list-style: none;
}

/* Several errors arrive as a <ul> inside the box (#notifications, the
   module_error variant); the note has no bullets, so they stack as plain
   lines instead. */
.alert.alert-danger ul,
.bootstrap .module_error.alert.alert-danger ul,
.ets_opc_errors_wrapper .bootstrap .module_error.alert.alert-danger ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alert.alert-danger li,
.bootstrap .module_error.alert.alert-danger li,
.ets_opc_errors_wrapper .bootstrap .module_error.alert.alert-danger li {
    margin: 0;
}

.alert.alert-danger li + li,
.bootstrap .module_error.alert.alert-danger li + li,
.ets_opc_errors_wrapper .bootstrap .module_error.alert.alert-danger li + li {
    margin-top: 4px;
}

.alert.alert-danger .close,
.bootstrap .module_error.alert.alert-danger .close,
.ets_opc_errors_wrapper .bootstrap .module_error.alert.alert-danger .close {
    background: transparent;
    border: 0;
    color: var(--cTextLight2);
    cursor: pointer;
    float: none;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    margin: 0;
    opacity: .6;
    padding: 0;
    position: absolute;
    right: 14px;
    text-shadow: none;
    top: 13px;
}

.alert.alert-danger .close:hover,
.bootstrap .module_error.alert.alert-danger .close:hover,
.ets_opc_errors_wrapper .bootstrap .module_error.alert.alert-danger .close:hover {
    color: var(--cText);
    opacity: 1;
}

/* The voucher error joins the group above from ets_onepagecheckout's own
   markup rather than Module::displayError(), so it needs the vendor's
   Bootstrap-alert trimmings taken off first. The #form_ets_onepagecheckout
   scope is what outranks onepagecheckout.css, which reaches these elements at
   three classes deep. */
#form_ets_onepagecheckout .promo-code .alert.alert-danger {
    /* No .close button on this one, so the right inset the group reserves for
       it would read as a lopsided box. */
    padding-right: 18px;
}

/* The group draws its own icon in ::before; the vendor's "!" disc would sit
   beside it. */
#form_ets_onepagecheckout .promo-code .alert.alert-danger .opc_info_icon {
    display: none;
}

/* Indent came from that disc. The group's padding-left places the text now. */
#form_ets_onepagecheckout .promo-code .alert.alert-danger .js-error-text {
    margin-left: 0;
}