/*
Theme Name:   DA10 Child
Theme URI:    http://example.com/da10-child/
Description:  DA10 Child Theme
Author:       Your Name
Author URI:   http://example.com
Template:     DA10
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain:  da10-child
*/

/* =============================================================================
   FORM VALIDATION — error state for required fields
   ========================================================================== */

/* Red border on standard form controls (inputs, textareas, visible selects) */
.form-control.required-active {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
}

/* Red border on usertry buttons inside taxonomy field wrappers */
.field_wrapper.field-error .usertry {
    border-color: #dc3545 !important;
    color: #dc3545;
}

/* Red border on media upload block when image is required */
.add-block-wrap.upload-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
}

/* =============================================================================
   LANGUAGE SELECTION POPUP (First Visit)
   ========================================================================== */

.ppt-lang-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 40, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ppt-lang-popup-overlay.ppt-lang-popup-show {
    opacity: 1;
}

.ppt-lang-popup-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 40px 40px;
    max-width: 420px;
    width: 92%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    transform: scale(0.88) translateY(24px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ppt-lang-popup-overlay.ppt-lang-popup-show .ppt-lang-popup-card {
    transform: scale(1) translateY(0);
}

.ppt-lang-popup-heart {
    width: 64px;
    height: 64px;
    background: #4593A8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(69, 147, 168, 0.35);
}

.ppt-lang-popup-heart i {
    color: #fff;
    font-size: 28px;
}

.ppt-lang-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.ppt-lang-popup-subtitle {
    color: #888;
    font-size: 13px;
    margin: 0 0 32px;
    line-height: 1.5;
}

.ppt-lang-popup-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.ppt-lang-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px 16px;
    border: 2px solid #eee;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    color: #2d2d2d;
    font-family: inherit;
}

.ppt-lang-btn:hover,
.ppt-lang-btn:focus {
    border-color: #4593A8;
    background: #f0f8fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(69, 147, 168, 0.18);
    outline: none;
}

.ppt-lang-btn .flag {
    width: 40px;
    height: 28px;
    border-radius: 3px;
    display: block;
}

@media (max-width: 480px) {
    .ppt-lang-popup-card {
        padding: 36px 22px 30px;
    }

    .ppt-lang-popup-buttons {
        flex-direction: column;
    }
}

.card-sidebar-filters .filter-cbh_tg_subscribed .cbh-tg-subscribed-toggle {
    border: 1px solid #ddd;
    padding: 3px;
    margin-bottom: 10px;
    border-radius: 8px;
    line-height: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    background: #fafafb;
    cursor: pointer;
}

.card-sidebar-filters .filter-cbh_tg_subscribed .cbh-tg-subscribed-toggle.on {
    background: #fac300;
}
.filter-cbh_tg_subscribed .tax-div {
    border-bottom: 0;
}
@media (max-width: 480px) {
    .ppt-modal-container .tax_wrapper {
        margin-top: 15px;
    }
}