/**
 * Consolidated CSS styles for all feedback popups
 */

/* ===== GLOBAL FEEDBACK POPUP STYLES ===== */
#oeg-feedback-btn {
    position: fixed;
    right: 0;
    left: auto;
    top: 40%;
    z-index: 9999;
    background: #204f70;
    color: #fff;
    border-radius: 0 6px 6px 0;
    padding: 12px 0;
    cursor: pointer;
    font-weight: bold;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    height: 120px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#oeg-feedback-btn:hover {
    background: #204f70;
}

#oeg-feedback-popup {
    display: none;
    position: fixed;
    right: 60px;
    left: auto;
    top: 35%;
    z-index: 10000;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    width: 320px;
    padding: 32px 20px 16px 20px;
    font-family: inherit;
}

#oeg-feedback-popup h3 {
    margin-top: 0;
    font-size: 1.1em;
    margin-bottom: 12px;
    padding-top: 18px;
}

.oeg-rating {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
}

.oeg-rating button {
    background: #e0e0e0;
    border: none;
    border-radius: 6px !important;
    width: 49px;
    height: 32px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
}

.oeg-rating button.selected,
.oeg-rating button:hover {
    background: #204f70;
    color: #fff;
}

#oeg-feedback-text {
    width: 100%;
    min-height: 60px;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 8px;
    margin-bottom: 12px;
    resize: vertical;
}

#oeg-feedback-close {
    position: absolute;
    right: 20px;
    top: 10px;
    background: none;
    border: none;
    font-size: 1.6em;
    color: #161616;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    margin: 0;
}

#oeg-feedback-submit {
    width: 100%;
    background: #b0b0b0;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 0;
    font-size: 1em;
    font-weight: bold;
    cursor: not-allowed;
    transition: background 0.2s;
}

#oeg-feedback-submit:hover {
    background: #204f70;
}

/* ===== INACTIVITY FEEDBACK POPUP STYLES ===== */
#oeg-inactivity-btn {
    display: none;
}

#oeg-inactivity-popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    width: 320px;
    padding: 32px 20px 16px 20px;
    font-family: inherit;
}

#oeg-inactivity-popup h3 {
    margin-top: 0;
    font-size: 1.1em;
    margin-bottom: 12px;
    padding-top: 18px;
}

.oeg-inactivity-rating, .oeg-inactivity-ease-rating {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
}

.oeg-inactivity-rating button, .oeg-inactivity-ease-rating button {
    background: #e0e0e0;
    border: none;
    border-radius: 6px !important;
    width: 49px;
    height: 32px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
}

.oeg-inactivity-rating button.selected,
.oeg-inactivity-rating button:hover,
.oeg-inactivity-ease-rating button.selected,
.oeg-inactivity-ease-rating button:hover {
    background: #204f70;
    color: #fff;
}

#oeg-inactivity-text {
    width: 100%;
    min-height: 60px;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 8px;
    margin-bottom: 12px;
    resize: vertical;
}

#oeg-inactivity-close {
    position: absolute;
    right: 20px;
    top: 10px;
    background: none;
    border: none;
    font-size: 1.6em;
    color: #161616;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    margin: 0;
}

#oeg-inactivity-submit {
    width: 100%;
    background: #204f70;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 0;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

#oeg-inactivity-submit:hover {
    background: #204f70;
}

#oeg-inactivity-submit:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

#oeg-inactivity-submit:disabled:hover {
    background: #cccccc;
}

#oeg-inactivity-lookingfor-label {
    font-size: 0.98em;
    color: #444;
    margin-bottom: 4px;
    font-weight: 500;
    margin-top: 10px;
}

#oeg-inactivity-lookingfor {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 8px;
    margin-bottom: 12px;
    font-size: 1em;
}

#oeg-inactivity-ease-label {
    font-size: 0.98em;
    color: #444;
    margin-bottom: 4px;
    font-weight: 500;
    margin-top: 10px;
}

/* ===== CHECKOUT ASSISTANCE POPUP STYLES ===== */
#oeg-checkout-popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    width: 320px;
    padding: 32px 20px 16px 20px;
    font-family: inherit;
}

#oeg-checkout-popup h3 {
    margin-top: 0;
    font-size: 1.1em;
    margin-bottom: 12px;
    padding-top: 18px;
}

#oeg-checkout-close {
    position: absolute;
    right: 20px;
    top: 10px;
    background: none;
    border: none;
    font-size: 1.6em;
    color: #161616;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    margin: 0;
}

#oeg-checkout-contact {
    font-size: 1.05em;
    color: #204f70;
    margin: 18px 0 0 0;
    font-weight: 500;
    word-break: break-word;
}

.whatsapp-button, .email-button {
    display: inline-block;
    margin-top: 10px;
    background: #25d366;
    color: #fff;
    border-radius: 6px;
    padding: 8px 18px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1em;
}

.whatsapp-button .button-content, .email-button .button-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-button .button-icon, .email-button .button-icon {
    display: inline-flex;
    align-items: center;
    height: 1.2em;
    width: 1.2em;
    fill: #fff;
}

.email-button {
    background: #204f70;
}

.email-submit-button {
    background: #204f70;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0 16px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    height: 40px;
    min-width: 90px;
    transition: background 0.2s;
}

.email-submit-button:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.email-submit-button:disabled:hover {
    background: #cccccc;
}

/* ===== PURCHASE FEEDBACK POPUP STYLES ===== */
#oeg-purchase-popup {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 10001;
    background: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    width: 350px;
    padding: 32px 20px 16px 20px;
    font-family: inherit;
}

#oeg-purchase-popup h3 {
    margin-top: 0;
    font-size: 1.1em;
    margin-bottom: 12px;
    padding-top: 18px;
}

#oeg-purchase-feedback-text {
    width: 100%;
    min-height: 60px;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 8px;
    margin-bottom: 12px;
    resize: vertical;
}

#oeg-purchase-submit {
    width: 100%;
    background: #b0b0b0;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 0;
    font-size: 1em;
    font-weight: bold;
    cursor: not-allowed;
    transition: background 0.2s;
}

#oeg-purchase-submit.enabled {
    background: #204f70;
    cursor: pointer;
}

#oeg-purchase-close {
    position: absolute;
    right: 20px;
    top: 10px;
    background: none;
    border: none;
    font-size: 1.6em;
    color: #161616;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    margin: 0;
}

/* ===== COURSE FEEDBACK POPUP STYLES ===== */
#oeg-midcourse-popup {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    top: auto;
    z-index: 10001;
    background: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    width: 350px;
    padding: 32px 20px 16px 20px;
    font-family: inherit;
}

#oeg-midcourse-close {
    position: absolute;
    right: 20px;
    top: 10px;
    background: none;
    border: none;
    font-size: 1.6em;
    color: #161616;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    margin: 0;
}

#oeg-midcourse-text {
    width: 100%;
    min-height: 60px;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 8px;
    margin-bottom: 12px;
    resize: vertical;
}

#oeg-midcourse-submit {
    width: 100%;
    background: #204f70;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 0;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    opacity: 0.5;
}

#oeg-midcourse-submit:not(:disabled) {
    opacity: 1;
}

/* ===== SHARED STYLES ===== */
.oeg-rating-labels {
    display: flex;
    justify-content: space-between;
    margin-top: -4px;
    margin-bottom: 12px;
    font-size: 0.95em;
    color: #666;
    width: 100%;
}

/* ===== DOMAIN-SPECIFIC OVERRIDES ===== */
/* Nuclear specificity (0,4,1) to beat Elementor - JavaScript adds oeg-main-domain class */
html body.oeg-main-domain.oeg-main-domain.oeg-main-domain .oeg-rating button,
html body.oeg-main-domain.oeg-main-domain.oeg-main-domain .oeg-inactivity-rating button,
html body.oeg-main-domain.oeg-main-domain.oeg-main-domain .oeg-inactivity-ease-rating button {
    width: 57px !important;
    background: #e0e0e0 !important;
    color: inherit !important;
}

html body.oeg-main-domain.oeg-main-domain.oeg-main-domain .oeg-rating button.selected,
html body.oeg-main-domain.oeg-main-domain.oeg-main-domain .oeg-rating button:hover,
html body.oeg-main-domain.oeg-main-domain.oeg-main-domain .oeg-inactivity-rating button.selected,
html body.oeg-main-domain.oeg-main-domain.oeg-main-domain .oeg-inactivity-rating button:hover,
html body.oeg-main-domain.oeg-main-domain.oeg-main-domain .oeg-inactivity-ease-rating button.selected,
html body.oeg-main-domain.oeg-main-domain.oeg-main-domain .oeg-inactivity-ease-rating button:hover {
    background: #204f70 !important;
    color: #fff !important;
}