/* --- Variables (can be overridden by host page) --- */
/* :root {
    --aw-panel-width: 550px;
    --aw-gap: 12px;
    --aw-accent: #fe4ebf;
    //  --aw-accent-dark: color-mix(in srgb, var(--aw-accent), black 20%);
    --aw-accent-dark: #dd2f9e;
    --aw-white: #ffffff;
    --aw-fg: #161b24;
    --aw-muted: #6b7280;
    --aw-radius: 0.45rem;
    --aw-shadow: 0 8px 24px rgba(2, 6, 23, 0.12);
    --base-font-size: 16px;
}
 */

accessibility-widget {
    font-family: Arial, Helvetica, sans-serif !important;
}


/* --- Floating button --- */
.aw-floating {
    position: fixed;
    bottom: 8px;
    right: 20px;
    z-index: 99999999999;
}

.aw-floating.left {
    right: auto;
    left: 20px;
}

.aw-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
    border-radius: var(--aw-radius);
    border: 1px solid #dbdbdb;
    background: var(--aw-accent);
    background: #dbdbdb;
    color: var(--aw-accent);
    display: grid;
    place-items: center;
    box-shadow: var(--aw-shadow);
    cursor: pointer;

    transition: transform 160ms ease-in-out;
}

.aw-btn:hover {
    outline: 3px solid rgba(11, 110, 246, 0.18);
    transform: scale(1.1);
}

/* --- Slide-in panel --- */
.aw-panel {

    width: calc(100% - 28px);
    border-radius: 10px;
    top: 12px;
    bottom: 12px;
    right: 12px;
    left: 12px;
    position: fixed;
    max-width: calc(100% - 32px);
    background: var(--aw-white);
    color: var(--aw-fg);
    box-shadow: var(--aw-shadow);
    padding: 14px;
    display: flex;
    flex-direction: column;
    z-index: 999999999999;
    transform: translateX(110%);
    transition: transform 320ms cubic-bezier(.16, 1, .3, 1), opacity 200ms;
    opacity: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.aw-panel::before {
    content: "";
    position: absolute;
    height: 50%;
    max-height: 370px;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--aw-accent);
    pointer-events: none;
}

.aw-panel.left {
    right: auto;
    left: 16px;
    transform: translateX(-110%);
}

.aw-panel.open {
    transform: translateX(0);
    opacity: 1;
}



.aw-main {
    z-index: 1;
}

/* Header */
.aw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Reset & close buttons */
.aw-close {
    color: white;
    background: transparent;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: scale 160ms ease-in-out;
}

.aw-close:hover {
    scale: 1.1;
}

.aw-close {
    font-weight: 700;
    padding: 4px 8px;
}

.aw-language-selection-button {
    background-color: transparent;
    border: none;
    color: white;
    border-radius: var(--aw-radius);
    padding: 4px 8px;
}

.aw-language-selection-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.aw-language-selection-button .flag img {
    width: 24px;
}

.aw-language-selection-button .text {
    text-transform: uppercase;
}

.aw-hero {
    text-align: center;
    padding: 0;
}

.aw-hero .title {
    font-size: 24px;
    color: #fff;
}

.aw-hero-actions {
    padding-top: 30px;
    justify-content: space-evenly;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    flex-direction: column;
    gap: 10px;
}

.hero-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex: 1;
    width: 100%;
    font-size: 15px;
    color: var(--aw-accent-dark);
    border-radius: var(--aw-radius);
    padding: 6px 10px;
    letter-spacing: -1px;
    background-color: #fff;
    text-decoration: none;
    transition: all .15s ease;
    border: none;
}

.aw-search {
    margin-top: 30px;
}

.aw-search-form {
    position: relative;
}

.aw-search-form .input {
    width: 100%;
    height: 41px;
    margin: 0;
    outline: 0;
    border: 0;
    border-radius: var(--aw-radius);
    font-size: 14px;
    padding: 0 50px;
    background-color: rgba(0, 0, 0, .1);
    transition: all .15s ease;
    color: inherit;
}

.aw-search-form .input::placeholder {
    color: white;
}

.aw-search-form i {
    color: white;
    position: absolute;
    height: 15px;
    transform: translateY(-50%);
    top: 50%;
}

.aw-search-form i.icon-left {
    left: 20px;
}

.aw-search-form i.icon-right {
    right: 20px
}

/* aw-main-options */
.aw-main-options {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aw-option {
    background-color: var(--aw-white);
    border-radius: var(--aw-radius);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    padding: 15px;
}

.aw-option-title {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 15px;
}

.aw-profiles {}

.aw-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 -7px;
    padding: 18px 7px;
    outline: 0;
    transition: all .3s ease-in-out;
    position: relative;
}

.aw-profile[aria-checked="true"] {
    background-color: #f7f7f7;
    border-radius: var(--aw-radius);

}

.aw-profile:last-child {
    margin-bottom: -15px;
}

.aw-profile:not(:last-child):after {
    position: absolute;
    content: "";
    bottom: 0;
    width: calc(100% - 18px);
    display: block;
    border-bottom: solid 1px #e0e0e0;
}

.aw-controls {
    display: flex;
    align-items: center;
}

.aw-switch {
    width: 54px;
    height: 30px;
    border-radius: 18px;
    border: 1px solid rgba(2, 6, 23, 0.06);
    background: #c4c7cd;
    padding: 3px;
    position: relative;
    cursor: pointer;
}

.aw-profile[aria-checked="true"] .aw-switch {
    background: var(--aw-accent);
    color: white;
}

.aw-knob {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    display: block;
    transition: transform 160ms;
    transform: translateX(0);
}

.aw-profile[aria-checked="true"] .aw-switch .aw-knob {
    transform: translateX(24px);
}

.aw-switch:focus {
    outline: 3px solid rgba(0, 0, 0, 0.08);
}

.aw-content {
    display: flex;
    flex-direction: column;
}

.aw-content-profile-title {
    font-weight: 600;
}


.aw-content-profile-description {
    font-size: small;
}

.aw-profile[aria-checked="true"] .aw-content-profile-title,
.aw-profile[aria-checked="true"] .aw-content-profile-description {
    color: var(--aw-accent-dark);
}

.aw-content-profile-long-description {
    display: none;
    font-weight: 500;
}

.aw-profile[aria-checked="true"] .aw-content-profile-long-description {
    display: block;
}


/*  */
.option-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: row dense;
    column-gap: 1rem;
    text-align: center;
    transition: all .5s ease;
}

.option-group .option-card {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    grid-column: span 1;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 15px;
    height: 120px;
    outline: 0 !important;
    padding: 15px;
    user-select: none;
    cursor: pointer;
    border-radius: var(--aw-radius);
    border: solid 2px #f0f0f0;
    background-color: #f7f7f7;
    transition: all .15s ease;
}

.option-group .option-card:not([role=switch]) {
    grid-column: span 2;
    cursor: default;
    outline: 0 !important;
    background-color: #f7f7f7;
    border-color: #f0f0f0 !important;
}

.option-group .option-card:focus,
.option-group .option-card:hover {
    border-color: var(--aw-accent);
}

.option-group .option-card.active[role=switch] {
    background-color: var(--aw-accent);
    border-color: var(--aw-accent);
    transition: all .15s ease;
    color: #fff;
}


.option-group .option-card .card-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-group .option-card[role=switch] .card-content {
    flex-direction: column;
    gap: 20px;
}


.option-group .option-card:not([role=switch]) .option-card-element {
    width: 100%;
    margin-top: 20px;
}

.option-group .option-card:not([role=switch]) .option-card-element .range {
    position: relative;
    max-width: 200px;
    margin: auto;
}

.option-group .option-card:not([role=switch]) .option-card-element .range .range-text {
    color: var(--aw-accent);
    position: relative;
    width: 100%;
    height: 35px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -.2px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center
}

.option-group .option-card:not([role=switch]) .option-card-element .range button {
    position: absolute;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    top: 0;
    border: none;
    border-radius: var(--aw-radius);
    cursor: pointer;
    z-index: 2;
    background-color: var(--aw-accent);
    transition: all .15s ease;
    color: #fff;
}

.option-group .option-card:not([role=switch]) .option-card-element .range .range-up {
    right: -15px;
}

.option-group .option-card:not([role=switch]) .option-card-element .range .range-down {
    left: -15px;
}


.color {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 0 1px;
    border-radius: 50px;
    border: 1px solid gray;
}

.color::before {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0;
    background-color: #fff;
    content: "";
    top: 50%;
    left: 50%;
    border: 1px solid var(--aw-accent);
    transform: translateX(-50%) translateY(-50%);
    transition: all .15s ease;
}

.color.active::before {
    opacity: 1;
}

.color-cancel {
    font-size: 13px;
    color: #1f2533;
    display: block;
    margin: 10px auto 0;
    border-color: transparent;
    background-color: transparent;
}

.color-cancel:hover {
    text-decoration: underline;
}

/* modal  --------*/
/* === Modal Container === */
.aw-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;

    /* 🎨 Animation setup */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 🔥 When modal opens */
.aw-modal.open {
    opacity: 1;
    visibility: visible;
}

/* === Modal Box === */
.aw-modal-content {
    background: #fff;
    color: #1f2533;
    font-size: 16px;
    padding: 40px 20px;
    border-radius: var(--aw-radius);
    overflow: auto;
    width: 85%;
    max-height: 85%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.aw-modal-content p {
    margin-bottom: 15px;
    font-size: 14px;
}
.aw-modal-content p strong {
   font-size: 16px;
}

/*  Animate modal content slide-in */
.aw-modal.open .aw-modal-content {
    transform: translateY(0);
}

/* === Close Button === */
.aw-modal-close {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    transition: color 0.2s ease;
}

.aw-modal-close:hover {
    color: #000;
}

.aw-modal-title {
    font-size: 24px;
    color: var(--aw-accent);
    display: block;
    margin-bottom: 15px;
}

.aw-modal-subtitle {
    font-size: 20px;
    display: block;
    margin-bottom: 10px;
}

.aw-modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.aw-modal-actions button {
    display: inline-block;
    padding: 15px;
    width: 48%;
    margin: 0;
    border-radius: var(--aw-radius);
    border: solid 2px var(--aw-accent);
    background-color: transparent;
    color: var(--aw-accent);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all .15s ease;
}

.aw-modal-actions .aw-confirm {
    background-color: var(--aw-accent);
    color: #fff;
}

.aw-modal-actions .aw-confirm:hover,
.aw-modal-actions .aw-cancel:hover {
    background-color: var(--aw-accent-dark);
    border-color: var(--aw-accent-dark);
    color: #fff;
}




/* Responsive */
@media (min-width: 992px) {
    .aw-panel {
        width: var(--aw-panel-width);
        border-radius: var(--aw-radius);
        top: 16px;
        bottom: 8px;
        right: 16px;
        left: unset;
    }

   /*  .aw-btn {
        width: 56px;
        height: 56px;
        font-size: 20px;
    } */

   .aw-floating {
        bottom: 8px;
    }

    .option-group {
        grid-template-columns: repeat(3, 1fr);

    }

    .aw-hero {
        padding: 0 15px;
    }

    .aw-hero-actions {
        flex-direction: row;
        gap: 20px;
    }
}





/* Option class */

html.aw-dark-contrast body,
html.aw-dark-contrast body .aw-contrast,
html.aw-dark-contrast body .aw-contrast::after,
html.aw-dark-contrast body .aw-contrast::before
 {
    color: #fff !important;
    background: #181818 !important;
}

html.aw-dark-contrast body input.aw-contrast::placeholder,
html.aw-dark-contrast body textarea.aw-contrast::placeholder
 {
    color: #fff !important;
}

html.aw-light-contrast body,
html.aw-light-contrast body .aw-contrast,
html.aw-light-contrast body .aw-contrast::after,
html.aw-light-contrast body .aw-contrast::before
 {
    color: #1f2533 !important;
    background: #fff !important;
}

html.aw-high-contrast {
    filter: contrast(130%) !important;
}

html.aw-high-saturation {
    -o-filter: saturate(200%) !important;
    -ms-filter: saturate(200%) !important;
    -moz-filter: saturate(200%) !important;
    -webkit-filter: saturate(200%) !important;
    filter: saturate(200%) !important;
}

html.aw-low-saturation {
    filter: saturate(50%) !important;
}

html.aw-monochrome {

    filter: grayscale(100%) !important;
}
