.wc-ssg-suburb-field {
    position: relative;
}

.wc-ssg-suburb-field .woocommerce-input-wrapper {
    display: block;
}

.wc-ssg-suburb-combobox {
    position: relative;
    display: block;
    width: 100%;
}

.wc-ssg-suburb-combobox .wc-ssg-suburb-input {
    width: 100%;
    padding-right: 2.75em;
}

.wc-ssg-suburb-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    width: 2.55em;
    border: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.16);
    background: transparent;
    color: inherit;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.wc-ssg-suburb-toggle:hover,
.wc-ssg-suburb-toggle:focus {
    background: rgba(0, 0, 0, 0.04);
    outline: none;
}

.wc-ssg-suburb-options {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 9999;
    max-height: 260px;
    overflow: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--wp--preset--color--base, #fff);
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.22);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.wc-ssg-suburb-option {
    margin: 0;
    padding: 0.68em 0.85em;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
}

.wc-ssg-suburb-option:last-child {
    border-bottom: 0;
}

.wc-ssg-suburb-option:hover,
.wc-ssg-suburb-option.is-active {
    background: rgba(0, 0, 0, 0.06);
}

.wc-ssg-suburb-option.is-empty {
    cursor: default;
    opacity: 0.72;
}

.wc-ssg-quote-link {
    display: inline-block;
    margin-top: 0.45em;
    font-size: 0.95em;
    line-height: 1.35;
    cursor: pointer;
}

button.wc-ssg-quote-link {
    appearance: none;
    -webkit-appearance: none;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font: inherit;
    color: var(--wp--style--color--link, var(--wp--preset--color--primary, #2271b1));
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 0.16em;
    text-transform: none;
}

button.wc-ssg-quote-link:hover,
button.wc-ssg-quote-link:focus {
    background: transparent !important;
    color: var(--wp--style--color--link, var(--wp--preset--color--primary, #2271b1));
}

.wc-ssg-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.wc-ssg-modal.is-open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8vh 16px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.wc-ssg-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
}

.wc-ssg-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    max-width: 100%;
    margin: 0 auto;
    background: var(--wp--preset--color--base, #fff);
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 0;
    padding: clamp(20px, 4vw, 32px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.wc-ssg-modal__x {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.wc-ssg-modal__title {
    margin-top: 0;
    margin-right: 42px;
    margin-bottom: 12px;
    font-size: clamp(1.45rem, 7vw, 2.45rem);
    line-height: 1.12;
    word-break: normal;
}

.wc-ssg-modal__message {
    font-size: clamp(0.98rem, 3.7vw, 1.05rem);
    line-height: 1.65;
}

.wc-ssg-modal__message p:last-child {
    margin-bottom: 0;
}

.wc-ssg-modal__notice {
    margin-top: 16px;
    font-weight: 600;
}

.wc-ssg-modal__notice.is-success {
    color: #147a3d;
}

.wc-ssg-modal__notice.is-error {
    color: #b32d2e;
}

.wc-ssg-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    max-width: 100%;
}

.wc-ssg-modal__actions .button,
.wc-ssg-modal__actions button.button,
.wc-ssg-modal__actions a.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.78em 1.15em !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: var(--wp--preset--color--contrast, #111) !important;
    background: var(--wp--preset--color--contrast, #111) !important;
    color: var(--wp--preset--color--base, #fff) !important;
    text-align: center;
    text-decoration: none !important;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
}

.wc-ssg-modal__actions .button:hover,
.wc-ssg-modal__actions .button:focus,
.wc-ssg-modal__actions button.button:hover,
.wc-ssg-modal__actions button.button:focus,
.wc-ssg-modal__actions a.button:hover,
.wc-ssg-modal__actions a.button:focus {
    opacity: 0.88;
    text-decoration: none !important;
}

.wc-ssg-modal__actions .wc-ssg-close-button {
    background: transparent !important;
    color: var(--wp--preset--color--contrast, #111) !important;
}

body.wc-ssg-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .wc-ssg-modal.is-open {
        align-items: flex-start;
        padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .wc-ssg-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 28px);
        max-height: calc(100dvh - 28px);
        overflow-y: auto;
    }

    .wc-ssg-modal__title {
        margin-right: 38px;
    }

    .wc-ssg-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .wc-ssg-modal__actions .button,
    .wc-ssg-modal__actions button.button,
    .wc-ssg-modal__actions a.button {
        width: 100%;
        min-height: 46px;
        padding: 0.9em 1em !important;
    }
}

@media (max-width: 360px) {
    .wc-ssg-modal.is-open {
        padding-left: 8px;
        padding-right: 8px;
    }

    .wc-ssg-modal__dialog {
        padding: 18px 14px;
    }

    .wc-ssg-modal__x {
        right: 8px;
    }
}

/* Enforce WhatsApp visibility setting. The button base styles use !important, so hidden also needs !important. */
.wc-ssg-modal__actions .wc-ssg-whatsapp-button[hidden],
.wc-ssg-modal__actions .wc-ssg-whatsapp-button.is-hidden,
.wc-ssg-modal__actions .wc-ssg-whatsapp-button[aria-hidden="true"] {
    display: none !important;
}
