/* Responsive foundations shared by the Classfire storefront. */
:root {
    --classfire-page-max-width: 1544px;
    --classfire-page-padding: clamp(16px, 3vw, 32px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body.classfire-store {
    width: 100%;
    max-width: 100%;
}

body.classfire-store {
    overflow-x: hidden;
}

body.classfire-store main,
body.classfire-store #content,
body.classfire-store .row,
body.classfire-store [class*="col-"],
body.classfire-store .panel,
body.classfire-store .panel-body,
body.classfire-store .well,
body.classfire-store form,
body.classfire-store fieldset,
body.classfire-store .input-group {
    min-width: 0;
}

:where(body.classfire-store) img,
:where(body.classfire-store) video,
:where(body.classfire-store) iframe {
    max-width: 100%;
}

:where(body.classfire-store) img {
    height: auto;
}

:where(body.classfire-store) input,
:where(body.classfire-store) select,
:where(body.classfire-store) textarea,
:where(body.classfire-store) .form-control {
    max-width: 100%;
}

body.classfire-store .form-control,
body.classfire-store textarea.form-control,
body.classfire-store select.form-control {
    width: 100%;
}

:where(body.classfire-store) button,
:where(body.classfire-store) input,
:where(body.classfire-store) select,
:where(body.classfire-store) textarea {
    font: inherit;
}

body.classfire-store h1,
body.classfire-store h2,
body.classfire-store h3,
body.classfire-store h4,
body.classfire-store p,
body.classfire-store a,
body.classfire-store td,
body.classfire-store th,
body.classfire-store label {
    overflow-wrap: anywhere;
}

body.classfire-store pre,
body.classfire-store code {
    max-width: 100%;
}

body.classfire-store pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.classfire-store .dropdown-menu {
    max-width: calc(100vw - 32px);
}

body.classfire-store .modal-dialog {
    width: min(700px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    margin-right: auto;
    margin-left: auto;
}

body.classfire-store .modal-content {
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
}

.classfire-home .slideshow,
.classfire-home #content > .swiper-viewport,
body.classfire-store #content > .swiper-viewport {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
}

/* Most internal pages use the overlay header but do not have a dedicated hero. */
body.classfire-store > .container:not(#common-home):not(#product-category):not([id^="account-"]) {
    width: min(100%, var(--classfire-page-max-width));
    padding-top: 292px;
    padding-right: var(--classfire-page-padding);
    padding-left: var(--classfire-page-padding);
}

body.classfire-manufacturer-page > #product-manufacturer {
    padding-top: 0;
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .classfire-header-inner {
        padding-right: 32px;
        padding-left: 32px;
    }

    .classfire-header-actions .classfire-header-inner {
        gap: 14px;
    }

    .classfire-action span {
        display: none;
    }

    .classfire-account {
        padding-right: 16px;
        padding-left: 16px;
    }
}

/* Tablet portrait and small notebooks. */
@media (min-width: 768px) and (max-width: 1023px) {
    body.classfire-store:has(#product-category) {
        padding-top: 224px !important;
    }

    body.classfire-store > .container:not(#common-home):not(#product-category):not([id^="account-"]) {
        padding-top: 224px;
    }

    body.classfire-manufacturer-page > #product-manufacturer {
        padding-top: 0;
    }

    .classfire-header-inner {
        padding-right: 24px;
        padding-left: 24px;
    }

    .classfire-header-main,
    .classfire-header-main .classfire-header-inner {
        min-height: 96px;
        height: 96px;
    }

    .classfire-header-actions,
    .classfire-header-actions .classfire-header-inner {
        min-height: 76px;
        height: 76px;
    }

    .classfire-header-actions .classfire-header-inner {
        gap: 10px;
    }

    .classfire-action,
    .classfire-account,
    .classfire-cart #cart > .btn {
        min-width: 44px;
        min-height: 44px;
    }

    .classfire-action span,
    .classfire-account span,
    .classfire-cart #cart > .btn {
        font-size: 0;
    }

    .classfire-action i,
    .classfire-account i,
    .classfire-cart #cart > .btn i {
        font-size: 18px;
    }

    .classfire-cart {
        flex: 0 1 auto;
        min-width: 0;
    }

    .classfire-account {
        justify-content: center;
        padding-right: 12px;
        padding-left: 12px;
    }

    body.classfire-store > .container > .row,
    body.classfire-store > .container-fluid > .row,
    #account-register .classfire-register-row {
        display: flex;
        flex-wrap: wrap;
    }

    body.classfire-store > .container > .row > #content,
    body.classfire-store > .container-fluid > .row > #content,
    #account-register .classfire-register-row > #content {
        order: 1;
        float: none;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    body.classfire-store > .container > .row > #column-left,
    body.classfire-store > .container-fluid > .row > #column-left,
    body.classfire-store > .container > .row > #column-right,
    body.classfire-store > .container-fluid > .row > #column-right,
    #account-register .classfire-register-row > #column-left,
    #account-register .classfire-register-row > #column-right {
        float: none;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        margin-top: 32px;
    }

    body.classfire-store > .container > .row > #column-left,
    body.classfire-store > .container-fluid > .row > #column-left,
    #account-register .classfire-register-row > #column-left {
        order: 2;
        padding-right: 0;
        padding-left: 0;
    }

    body.classfire-store > .container > .row > #column-right,
    body.classfire-store > .container-fluid > .row > #column-right,
    #account-register .classfire-register-row > #column-right {
        order: 3;
        padding-right: 0;
        padding-left: 0;
    }

    #account-register.classfire-register-page {
        padding-top: 32px !important;
    }

    #account-login.classfire-login-page,
    #account-forgotten.classfire-forgotten-page {
        padding-top: 32px !important;
        padding-bottom: 64px !important;
    }

    #account-register .classfire-register-row > #content {
        width: 100%;
    }

    #account-forgotten .classfire-forgotten-row {
        grid-template-columns: minmax(0, 1fr);
    }

    #account-forgotten .classfire-forgotten-row > #column-right {
        grid-column: 1;
        width: 100%;
    }

    .classfire-footer__tagline {
        font-size: clamp(48px, 8vw, 72px);
    }

    .classfire-footer__stories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
    }

    .classfire-footer__navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px;
    }
}

@media (max-width: 1023px) {
    .classfire-product-page .classfire-product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .classfire-product-page .classfire-product-details {
        min-width: 0;
    }

    .classfire-product-page .classfire-product-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    }

    .classfire-product-page .classfire-product-thumbnails .thumbnail {
        height: clamp(82px, 16vw, 150px);
    }

    .classfire-product-shell,
    #account-register.classfire-register-page {
        width: 100%;
        max-width: 100%;
    }

    .classfire-breadcrumb {
        width: 100%;
    }

    body.classfire-store .table-responsive,
    body.classfire-store #content > table.table,
    body.classfire-store #content .panel-body > table.table,
    body.classfire-store #content form > table.table,
    body.classfire-store #content fieldset > table.table,
    body.classfire-store #content .tab-content > table.table {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.classfire-store #content > table.table,
    body.classfire-store #content .panel-body > table.table,
    body.classfire-store #content form > table.table,
    body.classfire-store #content fieldset > table.table,
    body.classfire-store #content .tab-content > table.table {
        display: block;
    }

    #help-modal12 .classfire-product-modal-dialog {
        width: calc(100vw - 48px);
        max-width: 920px;
        margin-right: auto;
        margin-left: auto;
    }
}

/* Mobile. */
@media (max-width: 767px) {
    body.classfire-store > .container:not(#common-home):not(#product-category):not([id^="account-"]) {
        padding-top: 180px;
        padding-right: max(16px, env(safe-area-inset-right));
        padding-left: max(16px, env(safe-area-inset-left));
    }

    body.classfire-manufacturer-page > #product-manufacturer {
        padding-top: 0;
    }

    body.classfire-store #content {
        min-width: 0;
    }

    body.classfire-store .container,
    body.classfire-store .container-fluid {
        width: 100%;
        max-width: 100%;
    }

    body.classfire-store .row {
        margin-right: -10px;
        margin-left: -10px;
    }

    body.classfire-store [class*="col-"] {
        min-width: 0;
    }

    body.classfire-store table {
        max-width: 100%;
    }

    body.classfire-store .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.classfire-store .nav-tabs {
        display: flex;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    body.classfire-store .nav-tabs > li {
        float: none;
        flex: 0 0 auto;
    }

    body.classfire-store .btn,
    body.classfire-store button {
        min-height: 40px;
        max-width: 100%;
        white-space: normal;
    }

    body.classfire-store input,
    body.classfire-store select,
    body.classfire-store textarea,
    body.classfire-store .form-control {
        font-size: 16px;
    }

    body.classfire-store .form-horizontal .control-label {
        padding-top: 0;
        text-align: left;
    }

    body.classfire-store .buttons,
    body.classfire-store .button-group {
        max-width: 100%;
    }

    body.classfire-store .buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    body.classfire-store .buttons > .pull-left,
    body.classfire-store .buttons > .pull-right {
        float: none !important;
    }

    body.classfire-store .modal-dialog {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        margin: 16px auto;
    }

    body.classfire-store .modal-content {
        max-height: calc(100dvh - 32px);
    }

    body.classfire-store .pagination {
        display: flex;
        flex-wrap: wrap;
        gap: 2px;
    }

    body.classfire-store .pagination > li {
        display: block;
    }

    .classfire-header-inner {
        gap: 12px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .classfire-header-tools {
        gap: 18px;
    }

    .classfire-logo {
        min-width: 0;
    }

    .classfire-logo img {
        max-width: min(42vw, 190px);
        height: auto;
    }

    .classfire-header-actions .classfire-header-inner {
        justify-content: space-between;
    }

    .classfire-account {
        padding-right: 8px;
        padding-left: 8px;
    }

    .classfire-cart #cart > .btn {
        overflow: hidden;
    }

    .classfire-cart #cart .dropdown-menu {
        position: fixed;
        top: 138px;
        right: 16px;
        left: 16px;
        width: auto;
        min-width: 0;
        max-width: none;
        max-height: calc(100dvh - 154px);
        overflow-y: auto;
    }

    .classfire-cart #cart .dropdown-menu li > div {
        width: 100%;
        min-width: 0;
    }

    .classfire-product-shell {
        padding-right: 16px;
        padding-left: 16px;
    }

    .classfire-product-page .classfire-product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .classfire-product-page .classfire-product-main-image {
        height: clamp(220px, 75vw, 360px);
    }

    .classfire-product-page .classfire-product-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
        gap: 8px;
    }

    .classfire-product-page .classfire-product-thumbnails .thumbnail {
        height: clamp(64px, 20vw, 100px);
    }

    .classfire-product-page .classfire-product-details h2 {
        overflow-wrap: anywhere;
        font-size: clamp(24px, 7vw, 32px);
    }

    .classfire-product-page .classfire-product-options h3 {
        font-size: clamp(20px, 6vw, 24px);
    }

    .classfire-product-page .classfire-product-tabs .nav-tabs > li > a {
        padding-right: 12px;
        padding-left: 12px;
    }

    .classfire-product-page .tab-content,
    .classfire-product-page .tab-content * {
        overflow-wrap: anywhere;
    }

    .classfire-product-page .tab-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    #account-register.classfire-register-page {
        width: 100% !important;
        padding: 24px 12px 0 !important;
    }

    #account-login.classfire-login-page,
    #account-forgotten.classfire-forgotten-page {
        width: 100% !important;
        padding: 24px 15px 48px !important;
    }

    #account-register .classfire-cart-breadcrumb {
        min-height: 54px;
        gap: 10px;
        padding: 10px 14px !important;
        font-size: 14px;
        line-height: 1.4;
    }

    #help-modal12 .classfire-product-modal-footer {
        grid-template-columns: minmax(0, 1fr);
    }

    #help-modal12 .classfire-product-modal-footer label {
        grid-column: auto;
    }

    body.classfire-account-page .container[id^="account-"] #content > form:not(.classfire-login-form):not(.classfire-forgotten-form) {
        padding: 22px 18px;
    }
}

/* Small mobile. */
@media (max-width: 479px) {
    .classfire-header {
        left: 6px;
        right: 6px;
    }

    .classfire-header-main,
    .classfire-header-main .classfire-header-inner {
        min-height: 68px;
        height: 68px;
    }

    .classfire-header-actions,
    .classfire-header-actions .classfire-header-inner {
        min-height: 60px;
        height: 60px;
    }

    .classfire-logo img {
        max-width: 36vw;
        max-height: 38px;
    }

    .classfire-menu-icon {
        width: 28px;
        height: 28px;
    }

    .classfire-menu-square {
        width: 12px;
        height: 12px;
    }

    .classfire-cart #cart > .btn {
        padding-right: 7px;
        padding-left: 7px;
    }

    .classfire-action,
    .classfire-account {
        min-width: 34px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .classfire-product-page .classfire-product-breadcrumb {
        min-height: 0;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 18px;
        padding: 12px;
        font-size: 14px;
        line-height: 1.4;
    }

    body.classfire-store .buttons > *,
    body.classfire-store .buttons > .pull-left,
    body.classfire-store .buttons > .pull-right {
        width: 100%;
        max-width: 100%;
    }

    body.classfire-store .buttons .btn {
        width: 100%;
    }

    body.classfire-store #content .row > .col-xs-6 {
        float: none;
        width: 100%;
    }

    .classfire-footer__inner {
        width: calc(100% - 32px);
    }

    .classfire-footer__tagline {
        font-size: clamp(38px, 14vw, 56px);
    }

    #help-modal12 .classfire-product-modal-dialog {
        width: 100%;
        max-width: 100%;
        min-height: 100dvh;
        margin: 0;
    }

    #help-modal12 .classfire-product-modal-content {
        min-height: 100dvh;
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.classfire-store *,
    body.classfire-store *::before,
    body.classfire-store *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
