.vudu-wacf-widget,
.vudu-wacf-widget * {
    box-sizing: border-box;
}

.vudu-wacf-widget {
    font-family: inherit;
}

.vudu-wacf-button {
    position: fixed;
    bottom: var(--vudu-wacf-button-bottom);
    width: var(--vudu-wacf-button-size);
    height: var(--vudu-wacf-button-size);
    border: 0;
    border-radius: var(--vudu-wacf-button-radius);
    background: var(--vudu-wacf-button-bg);
    color: var(--vudu-wacf-button-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--vudu-wacf-icon-size);
    cursor: pointer;
    box-shadow: var(--vudu-wacf-button-shadow);
    z-index: var(--vudu-wacf-button-z);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
    padding: 0;
    line-height: 1;
}

.vudu-wacf-button:hover,
.vudu-wacf-button:focus {
    background: var(--vudu-wacf-button-bg-hover);
    transform: translateY(-1px);
    outline: none;
}

.vudu-wacf-button .vudu-wacf-icon-open,
.vudu-wacf-button .vudu-wacf-icon-close {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--vudu-wacf-animation-ms) ease, opacity var(--vudu-wacf-animation-ms) ease;
}

.vudu-wacf-button .vudu-wacf-icon-close {
    display: none;
}

.vudu-wacf-button.is-open .vudu-wacf-icon-open {
    display: none;
}

.vudu-wacf-button.is-open .vudu-wacf-icon-close {
    display: flex;
    transform: rotate(180deg);
}

.vudu-wacf-button svg {
    width: 1em;
    height: 1em;
    display: block;
}

.vudu-wacf-modal {
    display: none;
    position: fixed;
    bottom: var(--vudu-wacf-modal-bottom);
    width: var(--vudu-wacf-modal-width);
    max-width: calc(100vw - var(--vudu-wacf-modal-max-width-margin));
    max-height: calc(100vh - var(--vudu-wacf-modal-max-height-offset));
    background: var(--vudu-wacf-modal-bg);
    border-radius: var(--vudu-wacf-modal-radius);
    box-shadow: var(--vudu-wacf-modal-shadow);
    z-index: var(--vudu-wacf-modal-z);
    overflow: hidden;
    color: #222;
}

.vudu-wacf-modal.is-visible {
    display: block;
    animation: vuduWacfFadeIn var(--vudu-wacf-animation-ms) ease both;
}

.vudu-wacf-modal.is-hiding {
    display: block;
    animation: vuduWacfFadeOut var(--vudu-wacf-animation-ms) ease both;
}

.vudu-wacf-modal-content {
    width: 100%;
}

.vudu-wacf-modal-header {
    background: var(--vudu-wacf-header-bg);
    color: var(--vudu-wacf-header-color);
    padding: var(--vudu-wacf-header-padding);
    text-align: center;
}

.vudu-wacf-header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.vudu-wacf-header-title h2 {
    font-size: var(--vudu-wacf-title-size);
    font-weight: var(--vudu-wacf-title-weight);
    color: var(--vudu-wacf-header-color);
    margin: 0;
    line-height: 1.2;
}

.vudu-wacf-header-text {
    font-size: var(--vudu-wacf-text-size);
    color: var(--vudu-wacf-header-color);
    text-align: center;
    margin: 0;
    line-height: var(--vudu-wacf-text-line-height);
}

.vudu-wacf-modal-body {
    padding: var(--vudu-wacf-body-padding);
    max-height: calc(100vh - var(--vudu-wacf-modal-body-max-height-offset));
    overflow-y: auto;
}

.vudu-wacf-country-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--vudu-wacf-button-gap);
}

.vudu-wacf-country-btn {
    width: 100%;
    border: 1px solid var(--vudu-wacf-country-btn-border);
    background: var(--vudu-wacf-country-btn-bg);
    color: var(--vudu-wacf-country-btn-text);
    padding: var(--vudu-wacf-country-btn-py) var(--vudu-wacf-country-btn-px);
    border-radius: var(--vudu-wacf-country-btn-radius);
    font-size: var(--vudu-wacf-country-btn-font-size);
    font-weight: var(--vudu-wacf-country-btn-font-weight);
    text-align: left;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
    line-height: 1.3;
}

.vudu-wacf-country-btn:hover,
.vudu-wacf-country-btn:focus {
    background: var(--vudu-wacf-country-btn-hover-bg);
    border-color: var(--vudu-wacf-country-btn-hover-border);
    outline: none;
}

.vudu-wacf-selected-country {
    margin-bottom: var(--vudu-wacf-selected-mb);
    padding: var(--vudu-wacf-selected-py) var(--vudu-wacf-selected-px);
    border-radius: var(--vudu-wacf-selected-radius);
    background: var(--vudu-wacf-selected-bg);
    border: 1px solid var(--vudu-wacf-selected-border);
    font-size: 14px;
    color: var(--vudu-wacf-selected-text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vudu-wacf-selected-country[hidden],
.vudu-wacf-country-form[hidden] {
    display: none !important;
}

.vudu-wacf-selected-country-text {
    color: var(--vudu-wacf-selected-text);
    font-weight: 600;
    line-height: 1.4;
}

.vudu-wacf-back-country {
    background: transparent;
    border: 0;
    color: var(--vudu-wacf-back-color);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
}

.vudu-wacf-back-country:hover {
    opacity: .8;
}

.vudu-wacf-country-form {
    width: 100%;
}

@keyframes vuduWacfFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes vuduWacfFadeOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(20px) scale(.98); }
}

@media (max-width: 600px) {
    .vudu-wacf-button {
        bottom: var(--vudu-wacf-button-bottom-mobile);
        width: var(--vudu-wacf-button-size-mobile);
        height: var(--vudu-wacf-button-size-mobile);
    }

    .vudu-wacf-modal {
        width: min(var(--vudu-wacf-modal-width), calc(100vw - var(--vudu-wacf-modal-max-width-margin)));
    }
}
