/* ═══════════════════════════════════════════════════
AKOIRAH COOKIE CONSENT — Stylesheet
Matches the exact design from the Figma screenshot
════════════════════════════════════════════════════ */

:root {
    --acc-accent: #99582a;
    --acc-accent-dark: #4e1010;
    --acc-white: #ffffff;
    --acc-gray-100: #f5f5f5;
    --acc-gray-400: #999999;
    --acc-gray-600: #555555;
    --acc-gray-800: #333333;
    --acc-border: #e5e5e5;
    --acc-radius: 4px;
    --acc-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    --acc-toggle-on: #6b1a1a;
    --acc-toggle-off: #cccccc;
    --acc-font: 'Georgia', serif;
    --acc-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --acc-z: 999999;
}
#acc-banner           { display: none; }
#acc-banner.is-open   { display: block; }   /* or flex, match your layout */

/* ── BANNER (top-right popup) ── */
#acc-banner {
    position: fixed;
    left: 59px;
    right: 59px;
    bottom: 36px;
    max-width: 406px;
    background: var(--acc-white);
    border-radius: var(--acc-radius);
    box-shadow: var(--acc-shadow);
    z-index: var(--acc-z);
    animation: acc-slide-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    font-family: var(--acc-font-sans);
    margin-left: auto;
}

@keyframes acc-slide-in {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.acc-banner-inner {
    padding: 30px 40px;
}

.acc-banner-header {
    display: flex;
    align-items: center;
    gap: 8px 17px;
    margin-bottom: 20px;
}

.acc-cookie-icon {
    width: 24px;
    min-width: 24px;
    /* align-self: center; */
    display: flex;
    align-items: center;
}

body .acc-cookie-icon img.emoji {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    vertical-align: unset !important;
}

.acc-banner-title {
    /*font-family: var(--acc-font-sans);*/
    font-size: 24px;
    font-weight: 400;
    color: #2A2A2A;
    letter-spacing: 0.01em;
    font-family: var(--e-global-typography-secondary-font-family);
}

.acc-banner-text {
    font-size: 12px;
    line-height: 1.5;
    color: #666666;
    margin: 0 0 20px;
    font-family: var(--e-global-typography-primary-font-family);
}

.acc-banner-text a {
    color: var(--acc-gray-800);
    text-decoration: underline;
}

/* Action buttons row */
.acc-banner-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

body .acc-cookie-icon img.emoji {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    vertical-align: unset !important;
}

body .acc-banner-inner .acc-banner-actions button {
    border-radius: 4px;
    font-family: var(--e-global-typography-primary-font-family);
    font-size: 16px;
    font-weight: 400;
    text-transform: unset;
    padding: 9px 14px 13px;
    line-height: normal;
    border: 1px solid #420F08;
    color: #420F08;
    background-color: #fff;
    transition: all 0.3s ease;
    background-color: #fff;
}

body .acc-banner-inner .acc-banner-actions button#acc-accept-all:not(:hover), 
body .acc-banner-inner .acc-banner-actions button:not(#acc-accept-all):hover {
    background-color: #420F08;
    color: #fff;
}

.acc-banner-inner .acc-banner-footer button {
    padding: 0;
    border: none !important;
    line-height: normal;
    display: block;
    color: #2A2A2A !important;
    background-color: transparent !important;
    text-decoration: underline;
    font-family: var(--e-global-typography-primary-font-family);
    text-transform: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.acc-banner-inner .acc-banner-footer {display: flex;align-items: center;justify-content: center;}

.acc-banner-inner .acc-banner-footer button:hover {
    color: #420f08 !important;
}

.acc-banner-inner .acc-banner-actions button#acc-accept-all:not(:hover), .acc-banner-inner .acc-banner-actions button:not(#acc-accept-all):hover {
    background-color: #420F08;
    color: #fff;
}

/* Shared button base */
.acc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--acc-font-sans);
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1;
    text-decoration: none;
}

.acc-btn-primary {
    background: var(--acc-accent);
    color: var(--acc-white);
    border-color: var(--acc-accent);
    flex: 1;
}
.acc-btn-primary:hover {
    background: var(--acc-accent-dark);
    border-color: var(--acc-accent-dark);
}

.acc-btn-secondary {
    background: var(--acc-white);
    color: var(--acc-gray-800);
    border-color: var(--acc-border);
    flex: 1;
}
.acc-btn-secondary:hover {
    background: var(--acc-gray-100);
}

.acc-btn-full {
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
}

/* "Cookie Preferences" text link */
.acc-banner-footer {
    text-align: center;
}
.acc-link-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 12.5px;
    color: var(--acc-gray-600);
    cursor: pointer;
    font-family: var(--acc-font-sans);
    text-decoration: underline;
    transition: color 0.2s;
}
.acc-link-btn:hover {
    color: var(--acc-gray-800);
}

/* ── OVERLAY ── */
#acc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: calc(var(--acc-z) + 1);
    animation: acc-fade-in 0.25s ease both;
}
@keyframes acc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── PREFERENCES MODAL ── */
#acc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 576px;
    max-height: min(541px, 90vh);
    overflow: hidden;
    background: var(--acc-white);
    border-radius: 8px;
    box-shadow: var(--acc-shadow);
    z-index: calc(var(--acc-z) + 2);
    font-family: var(--acc-font-sans);
    animation: acc-modal-in 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) both;
    /*display: flex !important;*/
    padding-top: 20px;
    background-color: #F8F8F8;
}

#acc-overlay:not(.is-open) { display: none !important; }

#acc-modal             { display: none; }
#acc-modal.is-open     { display: flex; }
#acc-overlay           { display: none; }
#acc-overlay.is-open   { display: block; }


@keyframes acc-modal-in {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 20px)); }
    to   { opacity: 1; transform: translate(-50%, -50%);              }
}

.acc-modal-inner {
    padding: 16px 36px 118px;
    max-height: 100%;
    overflow-y: auto;
    width: 100%;
    --sb-track-color: #e5e5e5;
    --sb-thumb-color: #d47a6a;
    --sb-size: 5px;
}   

.acc-modal-inner::-webkit-scrollbar {
  width: var(--sb-size);
}

.acc-modal-inner::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 10px;
}

.acc-modal-inner::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 10px;
}

@supports not selector(::-webkit-scrollbar) {
  .acc-modal-inner {
      scrollbar-color: var(--sb-thumb-color)
      var(--sb-track-color);
  }
}

.acc-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    padding-right: 34px;
}

.acc-modal-head .acc-modal-title {
    color: #420F08;
    text-transform: unset;
    font-size: 20px;
    font-weight: 400;
    margin: 0;
}

body .acc-modal-head button {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    border: none !important;
    font-size: 39px;
    width: 24px;
    height: 24px;
    line-height: normal;
    color: #999999 !important;
    background-color: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 8px;
    font-weight: 100;
}

.acc-close-btn:hover {
    color: var(--acc-gray-800);
    background: var(--acc-gray-100);
}

.acc-modal-desc {
    font-size: 12px;
    line-height: 1.287;
    color: #666666;
    margin: 0 0 20px;
    font-family: var(--e-global-typography-primary-font-family);
    font-weight: 400;
}

/* ── PREFERENCE ROWS ── */
.acc-pref-row {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: none !important;
}

.acc-pref-row:last-of-type {
    margin-bottom: 0;
}

.acc-pref-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.acc-pref-row .acc-pref-name {
    font-size: 14px;
    font-weight: 600;
    font-family: var(--e-global-typography-primary-font-family);
    line-height: 1.3;
    color: #2A2A2A;
}

.acc-pref-row .acc-pref-desc {
    font-size: 12px;
    font-weight: 400;
    font-family: var(--e-global-typography-primary-font-family);
    line-height: 1.3;
    margin-top: 8px;
    color: #666666;
}

/* ── TOGGLE SWITCH ── */
.acc-toggle {
    position: relative;
    display: inline-block;
    width: 47px;
    height: 23px;
    flex-shrink: 0;
    cursor: pointer;
}

.acc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.acc-toggle-track {
    position: absolute;
    inset: 0;
    background: #CCCCCC;
    border-radius: 999px;
    transition: background 0.25s;
}

.acc-toggle-track::after {
    content: '';
    position: absolute;
    left: 1px;
    top: 1px;
    width: 21px;
    height: 21px;
    background: #F8F8F8;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s;
}

.acc-toggle input:checked + .acc-toggle-track {
    background: var(--acc-toggle-on);
}

.acc-toggle input:checked + .acc-toggle-track::after {
    transform: translateX(calc(100% + 3px));
}

/* Necessary (always on, dimmed) */
.acc-toggle--disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* ── MODAL FOOTER ── */
.acc-modal-foot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    padding: 16px 16px;
    box-shadow: 0px -7px 14.5px 0px #00000017;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.acc-modal-note {
    font-size: 10.5px;
    color: var(--acc-gray-400);
    text-align: center;
    margin: 10px 0 0;
    line-height: 1.5;
}

.acc-pref-row .acc-pref-name {
    font-size: 14px;
    font-weight: 600;
    font-family: var(--e-global-typography-primary-font-family);
    line-height: 1.3;
}

.acc-pref-row .acc-pref-desc {
    font-size: 12px;
    font-weight: 400;
    font-family: var(--e-global-typography-primary-font-family);
    line-height: 1.3;
    margin-top: 8px;
}

body .acc-modal-foot button {
    border-radius: 8px;
    border: 1px solid #420F08;
    background-color: #420F08;
    color: #fff;
    padding: 11px 10px;
    max-width: 300px;
    line-height: normal;
    font-size: 14px;
    text-transform: none;
    font-family: var(--e-global-typography-primary-font-family);
    font-weight: 400;
    width: 100%;
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
    .acc-modal-inner {
        padding: 12px 25px 118px;
    }

    .acc-modal-desc,
    .acc-modal-head {
        margin-bottom: 12px;
    }

}
@media (max-width: 440px) {
    #acc-banner {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        border-radius: var(--acc-radius) var(--acc-radius) 0 0;
        animation: acc-slide-up 0.35s cubic-bezier(0.34,1.2,0.64,1) both;
    }
    @keyframes acc-slide-up {
        from { opacity: 0; transform: translateY(30px); }
        to   { opacity: 1; transform: translateY(0);    }
    }

    #acc-modal {
        width: 95%;
        max-height: 85vh;
    }

    .acc-banner-actions {
        flex-direction: column;
    }

    .acc-banner-inner {
        padding: 22px 22px;
    }
}
