/*!
 * Copyright (C) 2024 PayTomorrow,LLC. - All Rights Reserved
 *
 * Unauthorized copying or redistribution of this file in source and binary forms via any medium
 * is strictly prohibited.
 */
/*All pages*/
:root {
    --pt-factor: 1.0;
}

@media (max-width: 599px) {
    .wp-block-navigation__responsive-container {
        color: #000 !important;
    }
}

.pt-header {
    border-radius: 0 !important;
}

header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 1000;
}

#pt-main span {
    padding: 0 !important;
    display: inline !important;
    align-items: normal;
}

#pt-main img {
    display: inline !important;
}

.pt-bold {
    font-weight: bold !important
}

.pt-text-uppercase {
    text-transform: uppercase !important
}

.pt-text-center {
    text-align: center !important;
}

.pt-blue {
    color: #00A1FF !important;
}

.pt-text-blue {
    color: #00A1FF !important;
}

.pt-orange {
    color: #FE7C22 !important;
}

.pt-white {
    color: #ffffff !important;
}

.pt-dark-blue {
    color: #044165 !important;
}

.pt-light-blue {
    color: #B0E2FF !important;
}

.pt-dynamic-image-size {
    width: calc(432px * var(--pt-factor)) !important;
}

.pt-dynamic-icon-bg-size {
    width: calc(58px * var(--pt-factor)) !important;
    height: calc(58px * var(--pt-factor)) !important;
}

.pt-dynamic-top-image-size {
    width: calc(655px * var(--pt-factor)) !important;
}

.pt-dynamic-pt-offer-image-size {
    width: calc(250px * var(--pt-factor)) !important;
}

.pt-dynamic-why-paytomorrow-top-image-size {
    width: calc(460px * var(--pt-factor)) !important;
}

.pt-dynamic-blog-image-size {
    width: calc(1728px * var(--pt-factor)) !important;
    height: calc(573px * var(--pt-factor)) !important;
}

.pt-dynamic-offer-image-size {
    width: calc(594px * var(--pt-factor)) !important;
}

.pt-dynamic-droplet-image-size {
    max-width: 100%;
}

.pt-dynamic-9-droplet-image-size {
    max-width: 100%;
    width: calc(350px * var(--pt-factor)) !important;
}

.droplets-3-bg-blue {
    background-image: url("assets/images/background/3-droplets.svg");
    background-color: #044165;
    background-size: calc(552px * var(--pt-factor)) calc(340px * var(--pt-factor));
    background-position: calc(100% - 30px * var(--pt-factor)) calc(30px * var(--pt-factor));
    background-repeat: no-repeat;
}

.bg-dark-blue {
    background-color: #044165;
}

.droplets-bg-blue {
    background-image: url("assets/images/background/droplets-bg.svg");
    background-color: #044165;
    background-size: cover;
}

.pt-logo-size {
    width: calc(144px * var(--pt-factor)) !important;
    height: calc(40px * var(--pt-factor)) !important;
}

/* Fix for Mini-Cart Checkout button theme error: blue text on blue background */
.wc-block-mini-cart__footer-checkout .wc-block-components-button__text {
    color: #ffffff !important;
}

.wc-block-mini-cart__footer-checkout {
    background-color: #00A1FF !important;
    border: none !important;
}

.wc-block-mini-cart__footer-checkout:hover {
    background-color: #0088d6 !important;
}

.pt-logo-footer-size {
    width: calc(288px * var(--pt-factor)) !important;
    height: calc(80px * var(--pt-factor)) !important;
}

.pt-checkout-image-dynamic {
    width: calc(408px * var(--pt-factor)) !important;
    height: calc(580px * var(--pt-factor)) !important;
}

.pt-icon-merchant-support-dynamic {
    width: calc(60px * var(--pt-factor)) !important;
    height: calc(60px * var(--pt-factor)) !important;
}

.pt-dynamic-icon-size {
    width: calc(144px * var(--pt-factor)) !important;
}

.pt-dynamic-lender-logo-size {
    width: calc(133px * var(--pt-factor)) !important;
    height: calc(90px * var(--pt-factor)) !important;
}

.pt-image-container {
    position: relative !important;
    text-align: right !important;

    > div > img {
        width: 100% !important;
    }
}

.pt-flex {
    display: flex !important;
}

.pt-flex-center {
    display: flex !important;
    justify-content: center !important;
}

.pt-flex-left-pad {
    display: flex;
    padding-left: 9rem;
}

.pt-left-pad-main-content {
    padding-left: 6rem;
}

.pt-top-section {
    width: 50%;
}

.pt-head-width {
    width: 105% !important;
}

.pt-lender-block {
    padding-bottom: 1rem !important;
    width: 30% !important;
    padding-right: 5% !important;
}

.pt-button {
    border-radius: 100px !important;
    background-color: #00A1FF !important;
    border-color: #00A1FF !important;
    color: #ffffff !important;
    padding-bottom: .75rem;
    padding-top: .75rem;
    border: none !important;
    background-image: none !important;
}

.pt-button:active {
    /*box-shadow: 2px 2px 5px #fc894d !important;*/
    background: #e5e5e5 !important;
    /*background: #FE7C22 !important;*/
    -webkit-box-shadow: inset 0px 0px 5px #c1c1c1 !important;
    -moz-box-shadow: inset 0px 0px 5px #c1c1c1 !important;
    box-shadow: inset 0px 0px 5px #c1c1c1 !important;
    color: #00A1FF !important;
    outline: none !important;
    background-image: none !important;
}

.pt-sub-prime-decoration {
    background: linear-gradient(to left, #F2FAFF 97%, #80D0FF 3%) !important;
}

.pt-prime-decoration {
    background: linear-gradient(to left, #F2FAFF 97%, #044165 3%) !important;
}

.pt-near-prime-decoration {
    background: linear-gradient(to left, #F2FAFF 97%, #00A1FF 3%) !important;
}

/* --------------------------------------- Catalog Refinements ---------------------------------------------*/
.epi-product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.epi-product-card:hover {
    transform: translateY(-4px);
}

.epi-title-2line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}

.epi-desc-2line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}

/* Custom shadow for clean look */
.shadow-sm {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
}

.rounded-2xl {
    border-radius: 1rem !important;
}

.bg-base-50 {
    background-color: #f9fafb !important;
}

/* --------------------------------------- Catalog Drawer & Filter Refinements ---------------------------------------------*/
.drawer-side {
    z-index: 10001 !important;
}

.drawer-overlay {
    background-color: rgba(4, 65, 101, 0.4) !important; /* PayTomorrow Dark Blue with opacity */
}

/* Custom scrollbar for filter drawer */
.drawer-side aside::-webkit-scrollbar {
    width: 6px;
}

.drawer-side aside::-webkit-scrollbar-track {
    background: transparent;
}

.drawer-side aside::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 10px;
}

.drawer-side aside::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

/* Filter Section Styles */
.pt-filter-section-title {
    color: #044165 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-transform: none !important;
}

.pt-filter-collapse {
    border-bottom: 1px solid #f3f4f6 !important;
    overflow: visible !important;
}

.pt-filter-collapse .collapse-content {
    overflow: visible !important;
}

/* Ensure open filter sections are above subsequent ones so dropdowns aren't covered */
.pt-filter-collapse:focus-within,
.pt-filter-collapse:has(input:checked) {
    z-index: 50;
    position: relative;
}

.pt-filter-collapse .collapse-title {
    padding-left: 0 !important;
    padding-right: 2rem !important;
    color: #044165 !important;
}

/* Checkbox Styles */
.pt-filter-checkbox {
    border-radius: 4px !important;
    border: 2px solid #333 !important;
    width: 1.15rem !important;
    height: 1.15rem !important;
    cursor: pointer;
    appearance: none;
    display: inline-grid;
    place-content: center;
    background-color: white;
    transition: all 0.2s ease;
}

.pt-filter-checkbox:checked {
    background-color: #00A1FF !important;
    border-color: #00A1FF !important;
}

.pt-filter-checkbox:checked::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(1);
    background-color: white;
}

/* Button Styles */
.pt-btn-pill {
    border-radius: 9999px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.pt-btn-apply {
    background-color: #00A1FF !important;
    color: white !important;
    border: none !important;
}

.pt-btn-apply:hover {
    background-color: #0087d6 !important;
}

.pt-btn-clear {
    border: 2px solid #00A1FF !important;
    color: #00A1FF !important;
    background-color: transparent !important;
}

.pt-btn-clear:hover {
    background-color: #00A1FF10 !important;
}

.pt-filter-footer {
    background-color: white !important;
    border-top: 1px solid #f3f4f6 !important;
    padding: 1.5rem !important;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Force line clamp for older browsers if needed, though Tailwind 4 handles it */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fix for drawer animation smoothness */
.drawer-side aside {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure collapse arrows look like the screenshot */
.collapse-arrow > .collapse-title:after {
    top: 1.5rem !important;
}

/* Floating Filter Button */
.pt-floating-filter-btn {
    position: fixed !important;
    top: 10rem !important;
    left: calc(50vw - 670px - 6rem) !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 10000 !important;
    width: 3.5rem !important;
    height: 3.5rem !important;
    box-shadow: 0 10px 25px -5px rgba(4, 65, 101, 0.4), 0 8px 10px -6px rgba(4, 65, 101, 0.4) !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 1550px) {
    .pt-floating-filter-btn {
        left: 2rem !important;
    }
}

.pt-floating-filter-btn:hover {
    transform: scale(1.1) translateY(-2px) !important;
}

.pt-floating-filter-btn:active {
    transform: scale(0.95) !important;
}

.pt-marketplace-text {
    color: #FE7C22 !important;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    margin-left: -0.5rem;
}

.pt-nav-link {
    color: #044165 !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.pt-nav-link:hover {
    opacity: 0.8;
}

/* Custom styling for the financing button in header if it's a button */
.pt-financing-button {
    background-color: #00A1FF !important;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-transform: none !important;
    letter-spacing: 0.05em !important;
}

.wc-block-mini-cart__button .wc-block-mini-cart__badge {
    background-color: #044165 !important;
    color: #ffffff !important;
}

.product-gallery, .product-details-body {
    width: 100% !important;
}

.woocommerce-breadcrumb {
    color: #044165 !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 2rem !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

.woocommerce-breadcrumb a {
    color: #00A1FF !important;
    text-decoration: none !important;
    transition: opacity 0.2s !important;
}

.woocommerce-breadcrumb span {
    color: #044165 !important;
}

.woocommerce-breadcrumb a:hover {
    opacity: 0.7 !important;
}

@media (min-width: 1024px) {
    .product-details-container {
        display: flex !important;
        flex-direction: row !important;
        gap: 4rem !important;
    }

    .product-gallery {
        width: 60% !important;
    }

    .product-details-content {
        width: 40% !important;
    }
}

/*--------------------------------------- Media Queries ----------------------------------------------------*/
@media (max-width: 999px) {
    .pt-flex-center {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .pt-flex {
        display: flex !important;
        flex-direction: column !important;
    }

    .pt-head-width {
        width: 90% !important;
    }

    .pt-flex-left-pad {
        display: block !important;
        padding-left: 1rem !important;
    }

    .pt-top-section {
        width: 100% !important;
    }

    .pt-left-pad-main-content {
        padding-left: 1rem !important;
    }

    .pt-dynamic-top-image-size {
        max-width: 100%;
        /*max-width: 200px;*/
    }

    .pt-dynamic-pt-offer-image-size {
        max-width: 100%;
        /*max-width: 200px;*/
    }

    .pt-dynamic-why-paytomorrow-top-image-size {
        max-width: 100%;
    }

    .pt-dynamic-offer-image-size {
        max-width: 100%;
        /*max-width: 200px;*/
    }

    .pt-dynamic-image-size {
        max-width: 200px !important;
    }

    .pt-lender-block {
        padding-bottom: 1rem !important;
        width: 100% !important;
        padding-right: 5% !important;
    }

    .pt-sub-prime-decoration {
        background: linear-gradient(to left, #F2FAFF 98%, #80D0FF 2%) !important;
    }

    .pt-prime-decoration {
        background: linear-gradient(to left, #F2FAFF 98%, #044165 2%) !important;
    }

    .pt-near-prime-decoration {
        background: linear-gradient(to left, #F2FAFF 98%, #00A1FF 2%) !important;
    }

    .droplets-3-bg-blue {
        background-image: url("assets/images/background/3-droplets.svg");
        background-color: #044165;
        background-size: calc(230px * var(--pt-factor)) calc(142px * var(--pt-factor));
        background-position: calc(100% - 10px * var(--pt-factor)) calc(10px * var(--pt-factor));
        background-repeat: no-repeat;
    }
}

/*--------------------------------------- Pre-approval Iframe ----------------------------------------------------*/
.__pt-fp-iframe-container {
    background: center center no-repeat;
    /* iOS requires a display none */
    display: none;
    height: 100%;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    transition: opacity 0.3s ease-in-out;
    visibility: hidden;
    width: 100%;
    z-index: 9999;
}

.__pt-fp-iframe-container.active {
    opacity: 1;
    visibility: visible;
    /* iOS requires a display block */
    display: block;
}

.__pt-fp-iframe-container > iframe {
    background: none;
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2;
}


#pt-overlay {
    /*background: rgba(255,255,255,0.5);*/
    /*background: rgba(200,200,200,0.5);*/
    background: rgba(51, 51, 51, .7) !important;
    color: #666666 !important;
    position: fixed !important;
    height: 100% !important;
    width: 100% !important;
    z-index: 5000 !important;
    top: 0 !important;
    left: 0 !important;
    float: left !important;
    text-align: center !important;
    padding-top: 25% !important;
    /*opacity: .80;*/
}

.pt-spinner {
    margin: 0 auto !important;
    height: 100px !important;
    width: 100px !important;
    background-image: url(https://s3.amazonaws.com/cdn.paytomorrow.com/image/spinner.gif) !important;
    background-size: 100px 100px !important;
    /*animation: rotate 0.8s infinite linear;*/
    /*border: 5px solid firebrick;*/
    /*border-right-color: transparent;*/
    /*border-radius: 50%;*/
}

@keyframes rotate {
    0% {
        transform: rotate(0deg) !important;
    }
    100% {
        transform: rotate(360deg) !important;
    }
}

/* --------------------------------------- Checkout Refinements ---------------------------------------------*/
.wc-block-checkout {
    background-color: transparent !important;
}

.wc-block-checkout__main, .wc-block-checkout__sidebar {
    padding-top: 2rem !important;
}

/* White cards for checkout steps */
.wc-block-components-checkout-step {
    background-color: white !important;
    border-radius: 2rem !important;
    border: 1px solid #f3f4f6 !important;
    padding: 2.5rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
}

.wc-block-components-checkout-step__title {
    color: #044165 !important;
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    margin-bottom: 2rem !important;
    border-bottom: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

/* Order Summary Card */
.wc-block-checkout__sidebar {
    background-color: transparent !important;
}

.wc-block-components-order-summary {
    background-color: white !important;
    border-radius: 2rem !important;
    border: 1px solid #f3f4f6 !important;
    padding: 2.5rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
}

.wc-block-components-order-summary__title {
    color: #044165 !important;
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    margin-bottom: 2rem !important;
}

/* Totals styling */
.wc-block-components-totals-item {
    margin-bottom: 0.75rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
}

.wc-block-components-totals-item__label {
    color: #262626 !important;
    font-weight: 500 !important;
}

.wc-block-components-totals-item__value {
    color: #044165 !important;
    font-weight: 700 !important;
}

.wc-block-components-totals-footer-item {
    border-top: 2px solid #f3f4f6 !important;
    padding-top: 1.5rem !important;
    margin-top: 1.5rem !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    color: #044165 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    color: #044165 !important;
}

/* Place Order Button */
.wc-block-components-checkout-place-order-button {
    background-color: #00A1FF !important;
    color: white !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    padding: 1rem 2rem !important;
    height: auto !important;
    min-height: 3.5rem !important;
    font-size: 1.125rem !important;
    text-transform: none !important;
    border: none !important;
    box-shadow: 0 4px 14px 0 rgba(0, 161, 255, 0.39) !important;
    transition: all 0.2s ease !important;
}

.wc-block-components-checkout-place-order-button:hover {
    background-color: #0087d6 !important;
    transform: translateY(-1px) !important;
}

/* Form fields */
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input {
    border-radius: 0.75rem !important;
    border: 1px solid #e5e7eb !important;
    background-color: #f9fafb !important;
}

.wc-block-components-text-input label,
.wc-blocks-components-select__container label {
    font-weight: 600 !important;
    color: #044165 !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
}

.wc-blocks-components-select__container label {
    transform: scale(.82) !important;
    transform-origin: left top !important;
    overflow: visible !important;
}

/* Hide some default WC stuff if needed */
.wc-block-components-order-summary__header {
    border-bottom: none !important;
}

/* --------------------------------------- General Theme "Stuff" ---------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    color: #044165 !important;
    font-weight: 800 !important;
}

/* Rounded cards for groups with backgrounds */
.has-background {
    border-radius: 2rem !important;
}

/* Global button shape consistency */
.wp-block-button__link,
.button,
.wc-block-components-button {
    border-radius: 9999px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    transition: all 0.2s ease !important;
}

/* Primary link color */
a:not(.btn):not(.pt-button):not(.pt-btn-pill):not(.wc-block-components-button) {
    color: #00A1FF;
}

a:not(.btn):not(.pt-button):not(.pt-btn-pill):not(.wc-block-components-button):hover {
    color: #0087d6;
}

/* Form field global styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
    border-radius: 0.75rem !important;
    border: 1px solid #e5e7eb !important;
    background-color: #f9fafb !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

select {
    border-radius: 0.75rem !important;
    border: 1px solid #e5e7eb !important;
    background-color: #f9fafb !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

input[type="text"]:not(.wc-block-components-text-input input),
input[type="email"]:not(.wc-block-components-text-input input),
input[type="tel"]:not(.wc-block-components-text-input input),
input[type="password"],
textarea,
select:not(.wc-blocks-components-select__select) {
    padding: 0.75rem 1rem !important;
}

input:focus, select:focus, textarea:focus {
    border-color: #00A1FF !important;
    box-shadow: 0 0 0 3px rgba(0, 161, 255, 0.1) !important;
    outline: none !important;
}

.pt-footer-logo {
    display: block;
    width: auto !important;
    max-width: 180px;
    height: auto !important;
    object-fit: contain;
}

@media (max-width: 768px) {
    footer .pt-black-grey {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    footer .pt-footer-col {
        width: 100% !important;
        max-width: none !important;
    }

    footer .pt-footer-legal {
        justify-content: flex-start !important;
    }
}

.pt-footer-link {
    text-decoration: none;
    color: inherit;
    opacity: 0.8;
}

/* Layout primitives */
.pt-header__inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
}
.pt-header__left,
.pt-header__right{
    display:flex;
    align-items:center;
    gap:0.75rem;
    flex:0 0 auto;
    min-width:0;
}

/* Keep menu + logo on one line */
.pt-header__brand{
    display:flex;
    align-items:center;
    gap:0.5rem;
    flex-wrap:nowrap;
    white-space:nowrap;
    min-width:0;
}

/* Center search grows, but won’t force left to wrap */
.pt-header__center{
    flex:1 1 auto;
    min-width:180px;
    display:flex;
    justify-content:center;
}
.pt-header__search{
    width:100%;
    max-width:720px;
}

/* Mobile behavior: stack rows cleanly */
@media (max-width: 782px){
    .pt-header__inner{ flex-wrap:wrap; }
    .pt-header__left{ order:1; }
    .pt-header__right{ order:2; }
    .pt-header__center{
        order:3;
        width:100%;
        justify-content:stretch;
    }
    .pt-header__search{
        max-width:none;
    }
}
