/**
 * Country / dial selects vs Elementor kit & global button styles.
 * Loaded after elementor-frontend on dashboard, subscription, auth.
 */

#dashboard-app button.weavy-country-select__trigger[type="button"],
#subscription-app button.weavy-country-select__trigger[type="button"],
#app.weavy-auth-root button.weavy-country-select__trigger[type="button"],
.elementor-widget-shortcode #dashboard-app button.weavy-country-select__trigger[type="button"],
.elementor-widget-shortcode #subscription-app button.weavy-country-select__trigger[type="button"],
.elementor-widget-shortcode #app.weavy-auth-root button.weavy-country-select__trigger[type="button"] {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: auto !important;
    padding: 12px 14px !important;
    margin: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #111827 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
    text-align: left !important;
    text-transform: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    flex: 1 1 auto !important;
}

#dashboard-app .weavy-phone-country-wrap button.weavy-country-select__trigger[type="button"],
#subscription-app .weavy-phone-country-wrap button.weavy-country-select__trigger[type="button"],
#app.weavy-auth-root .weavy-phone-country-wrap button.weavy-country-select__trigger[type="button"] {
    font-size: 13px !important;
    padding: 10px 12px !important;
}

#dashboard-app button.weavy-country-select__trigger[type="button"]:hover,
#dashboard-app button.weavy-country-select__trigger[type="button"]:active,
#dashboard-app button.weavy-country-select__trigger[type="button"]:focus,
#subscription-app button.weavy-country-select__trigger[type="button"]:hover,
#subscription-app button.weavy-country-select__trigger[type="button"]:active,
#subscription-app button.weavy-country-select__trigger[type="button"]:focus,
#app.weavy-auth-root button.weavy-country-select__trigger[type="button"]:hover,
#app.weavy-auth-root button.weavy-country-select__trigger[type="button"]:active,
#app.weavy-auth-root button.weavy-country-select__trigger[type="button"]:focus {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #111827 !important;
    border-color: #e5e7eb !important;
    box-shadow: none !important;
    outline: none !important;
}

#dashboard-app .weavy-country-select--open button.weavy-country-select__trigger[type="button"],
#dashboard-app button.weavy-country-select__trigger[type="button"]:focus-visible,
#subscription-app .weavy-country-select--open button.weavy-country-select__trigger[type="button"],
#subscription-app button.weavy-country-select__trigger[type="button"]:focus-visible,
#app.weavy-auth-root .weavy-country-select--open button.weavy-country-select__trigger[type="button"],
#app.weavy-auth-root button.weavy-country-select__trigger[type="button"]:focus-visible {
    border-color: #000000 !important;
    outline: 2px solid #000000 !important;
    outline-offset: 1px !important;
}

#dashboard-app .weavy-country-select__trigger-text,
#subscription-app .weavy-country-select__trigger-text,
#app.weavy-auth-root .weavy-country-select__trigger-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: inherit !important;
}

#dashboard-app .weavy-country-select__trigger-text--placeholder,
#subscription-app .weavy-country-select__trigger-text--placeholder,
#app.weavy-auth-root .weavy-country-select__trigger-text--placeholder {
    color: #6b7280 !important;
}

#dashboard-app .weavy-country-select,
#subscription-app .weavy-country-select,
#app.weavy-auth-root .weavy-country-select,
#dashboard-app weavy-country-select,
#subscription-app weavy-country-select,
#app.weavy-auth-root weavy-country-select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

#dashboard-app .weavy-phone-input-row,
#subscription-app .weavy-phone-input-row,
#app.weavy-auth-root .weavy-phone-input-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
}

@media (min-width: 640px) {
    #dashboard-app .weavy-phone-input-row,
    #subscription-app .weavy-phone-input-row,
    #app.weavy-auth-root .weavy-phone-input-row {
        flex-direction: row !important;
        align-items: stretch !important;
    }

    #dashboard-app .weavy-phone-country-wrap,
    #subscription-app .weavy-phone-country-wrap,
    #app.weavy-auth-root .weavy-phone-country-wrap {
        width: 116px !important;
        flex: 0 0 116px !important;
        max-width: 116px !important;
    }
}

#dashboard-app .weavy-phone-country-wrap,
#subscription-app .weavy-phone-country-wrap,
#app.weavy-auth-root .weavy-phone-country-wrap {
    width: 100% !important;
    min-width: 0 !important;
}

#dashboard-app .weavy-phone-number-input,
#subscription-app .weavy-phone-number-input,
#app.weavy-auth-root .weavy-phone-number-input {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    box-sizing: border-box !important;
}

#dashboard-app .weavy-billing-form-grid > div,
#subscription-app .weavy-billing-form-grid > div,
#dashboard-app .profile-section .weavy-country-select,
#dashboard-app .profile-section .weavy-phone-input-row {
    min-width: 0 !important;
}

#dashboard-app .weavy-country-select__panel,
#subscription-app .weavy-country-select__panel,
#app.weavy-auth-root .weavy-country-select__panel {
    z-index: 99999 !important;
}

#dashboard-app .weavy-country-select__search,
#subscription-app .weavy-country-select__search,
#app.weavy-auth-root .weavy-country-select__search {
    border: 1px solid #d1d5db !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    box-shadow: none !important;
}
