/* =========================================================
   WP Email Template Builder Settings — WooCommerce-style navigation tabs
   ========================================================= */

/* ---- Nav bar (mirrors WooCommerce's .nav-tab-wrapper style) ---- */
.wetc-settings-nav {
    border-bottom: 1px solid #c3c4c7;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.wetc-settings-nav a {
    display: inline-block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 400;
    color: #2c3338;
    text-decoration: none;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
    /* overlap the container border */
    border-radius: 3px 3px 0 0;
    background: transparent;
    transition: color 0.15s;
    position: relative;
    cursor: pointer;
}

.wetc-settings-nav a:hover {
    color: #135e96;
    background: transparent;
}

/* Active underline — same accent as WooCommerce admin */
.wetc-settings-nav a.wetc-tab-active {
    color: #135e96;
    font-weight: 600;
    border-color: #c3c4c7;
    background: #f0f0f1;
    border-bottom-color: #f0f0f1;
    /* hides bottom border, looks connected */
}

.wetc-settings-nav a.wetc-tab-active::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #135e96;
    border-radius: 2px 2px 0 0;
}

/* ---- Tab panels ---- */
[data-tab-panel] {
    display: none;
    /* JS will show the active one */
}

/* ---- Responsive ---- */
@media screen and (max-width: 782px) {
    .wetc-settings-nav a {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* ---- Toggle Switches ---- */
.wetc-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.wetc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wetc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.wetc-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked+.wetc-slider {
    background-color: #4CAF50;
}

input:focus+.wetc-slider {
    box-shadow: 0 0 1px #4CAF50;
}

input:checked+.wetc-slider:before {
    transform: translateX(20px);
}

.wetc-slider.round {
    border-radius: 20px;
}

.wetc-slider.round:before {
    border-radius: 50%;
}

/* ---- Utility Classes ---- */
.wetc-full-spinner-wrapper {
    text-align: center;
    padding: 60px 0;
}

.wetc-full-spinner {
    display: inline-block;
    float: none;
    width: 40px;
    height: 40px;
    background-size: 40px 40px;
    visibility: visible;
}

.wetc-td-padding {
    padding: 10px 0;
}

.wetc-save-spinner {
    float: none;
    margin-left: 8px;
}

.wetc-save-msg {
    margin-left: 10px;
    display: none;
    font-weight: 500;
}

.wetc-hidden {
    display: none;
}