/*GENERAL SPECIAL STYLES*/

/*Hide specials initially*/
#af3-notification-bar, #af3-popup, #af3-nudge, #af3-promotional-drawer {
    display: none;
}

/*Show Specials Classes*/

#af3-popup.showPopup {
    display: flex;
}

body.af3-popup-open {
    overflow: hidden;
}

#af3-notification-bar.showNotification {
    display: flex;
}

#af3-notification-bar.showNotification.top {
    position:relative;
}

/* Dimmed background */
body.af3-dimm {
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* General Button Styles */

.af3-square {
    border: 2px solid var(--af3-primary-color, var(--wp--preset--color--primary));
    background: var(--af3-primary-color, var(--wp--preset--color--primary));
    color: var(--af3-background-color, var(--wp--preset--color--background));
}

.af3-round {
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border: 2px solid var(--af3-primary-color, var(--wp--preset--color--primary));
    background: var(--af3-primary-color, var(--wp--preset--color--primary));
    color: var(--af3-background-color, var(--wp--preset--color--background));
}

/* General Button Hover States */

.af3-button.af3-square:hover, .af3-button.af3-round:hover {
    opacity: 1;
    border: 2px solid var(--af3-primary-color, var(--wp--preset--color--primary));
    background: none;
    color: var(--af3-foreground-color, var(--wp--preset--color--foreground));
    transition: .2s;
}

.af3-button.af3-square.af3-button-secondary:hover, .af3-button.af3-round.af3-button-secondary:hover {
    opacity: 1;
    background: var(--af3-primary-color, var(--wp--preset--color--primary));
    color: var(--af3-background-color, var(--wp--preset--color--background));
    transition: .2s;
}


/* Promotional Drawer Styles */

/* WebKit Browsers */
.slider::-webkit-scrollbar {
    width: 100;
    height: 5px;
}

.slider::-webkit-scrollbar-thumb {
    background-color: var(--af3-accent-color, var(--wp--preset--color--secondary));
}

.slider::-webkit-scrollbar-track {
    background: var(--af3-foreground-color, var(--wp--preset--color--foreground));
}

/* Firefox */
@-moz-document url-prefix() {
    .slider {
        scrollbar-width: thin;
        scrollbar-color: var(--af3-accent-color, var(--wp--preset--color--secondary));
    }
}

.promo-tab {
    all: unset;
    position: absolute;
    top: -45px;
    height: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--af3-background-color, var(--wp--preset--color--background));
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px 5px 0 0;
    color: var(--af3-foreground-color, var(--wp--preset--color--foreground)) !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0px -2px 1px 2px var(--af3-background-color, var(--wp--preset--color--background));
}

button#promo-tab:hover {
    opacity: 1;
}

body.promoDrawer_isActive footer {
    padding-bottom: 45px !important;
}

.slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 100%;
    background: linear-gradient(to left, var(--af3-background-color, var(--wp--preset--color--background)), transparent);
    pointer-events: none;
}

span#promo-icon {
    margin-left: 15px;
}

span#promo-icon svg {
    stroke: var(--af3-primary-color, var(--wp--preset--color--primary));
    width: 10px;
}

/* Existing CSS for promo drawer */
.promo-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 99999;
    user-select: none;
}

.promo-drawer.open {
    transform: translateY(0);
    z-index: 9999999;
}

.promo-content {
    background-color: var(--af3-background-color, var(--wp--preset--color--background));
    padding: 20px;
    display: flex;
}

.slider-container {
    display: flex;
    position: relative;
    width: 66%;
    flex-direction: column;
    justify-content: center;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    overflow: auto;
    padding-right: 100px;
    padding-bottom: 10px;
}

.slide {
    width: 33%;
    margin-right: 10px;
    display: flex;
    clip-path: content-box;
    min-width: 302px;
    position: relative;
}

.slide img {
    width: 100%;
    height: fit-content;
    aspect-ratio: 403 / 264;
    cursor: grab;
}

.promo-drawer-title {
    width: 33%;
    padding-left: 5%;
    padding-right: 5%;
    max-width: 475px;
}

a.hover-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--promo-drawer-transparent);
    transition: .25s;
    opacity: 0;
    text-decoration: none;
}

a.hover-container div {
    width: 75%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    z-index: 2;
}

a.hover-container div.af3-default {
    background-color: var(--af3-foreground-color, var(--wp--preset--color--foreground));
    color: var(--af3-background-color, var(--wp--preset--color--background));
}


a.hover-container div.af3-underline {
    color: var(--af3-primary-color, var(--wp--preset--color--primary));
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

a.hover-container:hover {
    opacity: 1 !important;
    transition: .25s;
}

a.hover-container:hover:after {
    content: '';
    background: var(--af3-background-color, var(--wp--preset--color--background));
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: .5;
    z-index: 1;
}

a.hover-container:focus {
    opacity: 1;
    border: 1px solid var(--wp--preset--color--primary);
}

.promo-drawer-title h2 {
    color: var(--af3-foreground-color, var(--wp--preset--color--foreground)) !important;
    word-break: keep-all;
    text-wrap: balance;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(24px, 2vw, 28px);
}

.promo-drawer-title p {
    font-weight: 600;
    color: var(--af3-primary-color, var(--wp--preset--color--primary));
    margin-top: 1rem;
}

span#promo-icon svg {
    transform: rotate(270deg);
    transition: .25s;
}

.promo-drawer.open span#promo-icon svg {
    transform: rotate(90deg);
    transition: .25s;
}

@media (max-width: 725px) {
    .promo-content {
        flex-direction: column;
        align-items: center;
    }

    .slider-container {
        width: 100%;
    }

    .promo-drawer-title {
        width: 100%;
        text-align: center;
        padding: 0;
    }
}

@media (max-width: 600px) {
    button#promo-tab {
        width: 100%;
    }
}

@media (max-width: 405px) {
    .slider-container::after {
        display: none;
    }
}

@media (max-width: 302px) {
    .slide {
        min-width: 100%;
    }

    .slider {
        padding-right: 0px;
    }
}

/*      MOBILE/TABLET DETECTED DEVICES*/


.promo-drawer.is-tablet a.hover-container,
.promo-drawer.is-mobile a.hover-container {
    opacity: 1;
    background: none;
}

.promo-drawer.is-mobile a.hover-container div,
.promo-drawer.is-tablet a.hover-container div {
    display: none;
}

/*NOTIFICATION BAR GENERAL STYLES*/

/* Admin bar offset */
body.admin-bar { --wp-admin-bar-offset: 32px; }

/* Base bar */
.af3-notification-bar {
    width: 100%;
    padding: 2rem;
    background: var(--af3-background-color, var(--wp--preset--color--background));
    color: var(--af3-foreground-color, var(--wp--preset--color--foreground));
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  
  /* TOP = normal block in flow (pushes layout, doesn’t stick on scroll) */
  .af3-notification-bar.top {
    position: static;
  }
  
  /* BOTTOM = keep as overlay */
  .af3-notification-bar.bottom {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9999999;
  }

.af3-notification-bar-heading h2 {
    font-family: inherit;
    font-size: clamp(18px, 2vw, 24px);
    color: var(--af3-foreground-color, var(--wp--preset--color--foreground));
    margin: 0;
    text-align: center;
}

div#af3-notification-bar p {
    color: var(--af3-foreground-color, var(--wp--preset--color--foreground));
    margin: 1rem 0;
    text-align: center;
}

div#af3-notification-bar p:empty {
  display: none;
  margin: 0;
}

div#af3-notification-bar .af3-notification-bar-disclaimer p {
    font-size: 12px;
    font-style: italic;
    text-align: center;
    padding: 0;
    margin-top: 1rem;
    margin-bottom: 0;
}

.af3-notification-bar-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

button.af3-notification-bar-close svg {
    fill: var(--af3-foreground-color, var(--wp--preset--color--foreground));
    width: 20px;
    height: 20px;
}

/*NOTIFICATION BAR BUTTON STYLES*/

.af3-notification-bar-buttons {
    display: flex;
    gap: 2rem;
}

.af3-notification-bar-buttons a.af3-button {
    width: 100%;
    min-width: fit-content;
    height: 40px;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-weight: 600;
}

.af3-notification-bar-buttons .af3-default {
    border: 2px solid var(--af3-primary-color, var(--wp--preset--color--primary));
    background: var(--af3-primary-color, var(--wp--preset--color--primary));
    color: var(--af3-background-color, var(--wp--preset--color--background));
}

.af3-notification-bar-buttons .af3-button.af3-button-secondary {
    background: var(--af3-background-color, var(--wp--preset--color--background));;
    color: var(--af3-primary-color, var(--wp--preset--color--primary));
}


.af3-notification-bar-buttons a.af3-button.af3-underline {
    color: var(--af3-primary-color, var(--wp--preset--color--primary));
    text-decoration: underline;
    text-underline-offset: 8px;
}


.af3-notification-bar-buttons .af3-button.af3-default:hover {
    opacity: 1;
    border: 2px solid var(--af3-primary-color, var(--wp--preset--color--primary));
    background: none;
    color: var(--af3-foreground-color, var(--wp--preset--color--foreground));
    transition: .2s;
}

.af3-notification-bar-buttons .af3-button.af3-default.af3-button-secondary:hover {
    opacity: 1;
    background: var(--af3-primary-color, var(--wp--preset--color--primary));
    color: var(--af3-background-color, var(--wp--preset--color--background));
    transition: .2s;
}

/* NOTIFICATION BAR MOBILE STYLES */

@media (max-width: 350px) {
.af3-notification-bar-buttons {
    flex-wrap: wrap;
}
}

/*NUDGE STYLES*/

div#af3-nudge.showNudge {
    width: 215px;
    transition: 0.3s;
}

div#af3-nudge.right {
    right: 0;
}

#af3-nudge.right .af3-nudge-closed {
    transform: rotateY(180deg);
}

div#af3-nudge.left {
    left: 0;
    flex-direction: row-reverse;
}
div#af3-nudge.left .af3-nudge-content {
    text-align: right;
    align-items: flex-end;
}

div#af3-nudge {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    width: 40px;
    min-width: 40px;
    height: auto;
    min-height: 175px;
    background-color: var(--af3-foreground-color, var(--wp--preset--color--foreground));
    color: var(--af3-background-color, var(--wp--preset--color--background));
    transition: 0.3s;
}

.af3-nudge-tab {
    all: unset;
    min-width: 40px;
    width: 40px;
    max-width: 40px;
    min-height: 175px;
    padding: 1rem 0;
    height: auto;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.af3-nudge-tab:hover {
    opacity: 1;
}

.af3-nudge-tab span {
    writing-mode: vertical-lr;
    text-orientation: sideways;
    transform: rotate(180deg);
    font-size: 16px;
    letter-spacing: 1.6px;
    margin-top: 5px;
    font-family: inherit;
}

.af3-nudge-icons div svg {
    stroke: var(--af3-primary-color, var(--wp--preset--color--primary));
    fill: var(--af3-primary-color, var(--wp--preset--color--primary));
}

.af3-nudge-opened {
    display: none;
}

div#af3-nudge.showNudge .af3-nudge-closed {
    display: none;
}

div#af3-nudge.showNudge .af3-nudge-opened {
    display: block;
}

.af3-nudge-opened svg {
    width: 18px;
    max-width: 18px;
    min-width: 18px;
}

.af3-nudge-closed svg {
    width: 8px;
    max-width: 8px;
    min-width: 8px;
}

.af3-nudge-content {
    font-size: 16px;
    max-width: 175px;
    width: 100%;
    min-width: 175px;
    background-color: var(--af3-background-color, var(--wp--preset--color--background));
    color: var(--af3-foreground-color, var(--wp--preset--color--foreground));
    padding: 1rem;
    font-weight: 600;
    line-height: 1.75rem;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-evenly;
}

.af3-nudge-content h2 {
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 1px;
    padding: 0;
    margin: 0;
}

.af3-nudge-content a {
    text-transform: uppercase;
    letter-spacing: 1.6px;
}

.af3-nudge-content a.af3-default, .af3-nudge-content a.af3-underline {
    color: var(--af3-primary-color, var(--wp--preset--color--primary));
    text-decoration: underline;
    text-underline-offset: 8px;
}

.af3-nudge-content a.af3-default:hover, .af3-nudge-content a.af3-underline:hover {
    filter: brightness(1.25);
    transition: .25s;
}

.af3-nudge-content a.af3-square {
    background: var(--af3-primary-color, var(--wp--preset--color--primary));
    color: var(--af3-background-color, var(--wp--preset--color--background));
    width: 100%;
    text-align: center;
}

.af3-nudge-content a.af3-round {
    background: var(--af3-primary-color, var(--wp--preset--color--primary));
    color: var(--af3-background-color, var(--wp--preset--color--background));
    width: 100%;
    text-align: center;
    border-radius:20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
}


/* Popup styles */

#af3-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: rgba(26, 26, 26, 0.7);
}

.af3-main-content {
    padding: 5rem 2rem 2rem 2rem;
    text-align: center;
}

#af3-popup * {
    color: var(--af3-foreground-color, var(--wp--preset--color--foreground));
}

.af3-main-content h2 {
    font-size: clamp(24px, 2vw, 36px);
    font-family: inherit;
    margin: 0 0 2rem 0;
}

.af3-main-content p {
    font-family:inherit;
    font-size: 15px;
    line-height: 22px;
    padding: 0;
    margin: 0;
}

.af3-main-content p:nth-of-type(2) {
    margin-top: 1rem;
}

#af3-popup a {
    font-weight: 600;
    margin-bottom: 2rem;
    padding: .25rem .75rem;
    text-transform: uppercase;
    letter-spacing: 1.6px;
}

#af3-popup a.af3-default, #af3-popup a.af3-underline {
    color: var(--af3-primary-color, var(--wp--preset--color--primary));
    text-decoration: underline;
    text-underline-offset: 8px;
    
}

#af3-popup a.af3-default:hover, #af3-popup a.af3-underline:hover {
    filter: brightness(1.25);
    transition: .25s;
}

#af3-popup a.af3-square, #af3-popup a.af3-round {
    color: var(--af3-background-color, var(--wp--preset--color--background));
}

#af3-popup a.af3-square:hover, #af3-popup a.af3-round:hover {
    color: var(--af3-foreground-color, var(--wp--preset--color--foreground));
}

.af3-popup-container {
    display: flex;
    position: absolute;
    margin: 1rem;
    max-width: 700px;
}

.af3-popup-image-container img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.af3-popup-image-container {
    width: 100%;
    max-width: 300px;
    overflow: hidden;
}

.af3-content-container {
    width: 100%;
    max-width: 400px;
    min-height: 500px;
    background: var(--af3-background-color, var(--wp--preset--color--background));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.af3-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin: 0;
}

p.af3-popup-disclaimer {
    font-size: 12px;
    text-align: center;
    padding: 0;
    margin: 0;
    font-style:italic;
}

.af3-popup-logo-container {
    background: var(--af3-foreground-color, var(--wp--preset--color--foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    height: 85px;
}

.af3-popup-logo-container img {
    max-height: 50px;
}

.af3-content-container.af3-no-popup-cover {
    max-width: 500px;
    position: relative;
}

.af3-content-container.af3-no-popup-cover.af3-no-site-logo {
    height: auto;
    min-height: fit-content;
}

.af3-content-container.af3-no-popup-cover.af3-no-site-logo .af3-main-content {
    padding: 2rem 2rem 2rem 2rem;
}


.af3-popup-container.af3-no-popup-cover.af3-no-site-logo button.af3-popup-close svg {
    fill: var(--af3-foreground-color, var(--wp--preset--color--foreground));
}

button.af3-popup-close {
    all: unset;
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    z-index: 1;
}

button.af3-popup-close svg {
    fill: var(--af3-foreground-color, var(--wp--preset--color--foreground));
}

.af3-popup-container.af3-no-popup-cover button.af3-popup-close svg {
    fill: var(--af3-background-color, var(--wp--preset--color--background));
}

/* Popup Mobile Styles */

@media (max-width: 675px) {
.af3-popup-container {
    display: flex;
    flex-direction: column-reverse;
}

.af3-popup-image-container {
    max-width: 400px;
}

.af3-content-container {
    min-height: 350px;
}

.af3-main-content {
    padding: 2rem 2rem 2rem 2rem;
}
}