/* dayOFF Phone Integration Styles */

/* Checkout phone fields */
.dayoff-phone-country {
    width: 40% !important;
    float: left !important;
    clear: none !important;
}

.dayoff-phone-number {
    width: 58% !important;
    float: right !important;
    clear: none !important;
}

.dayoff-phone-country select {
    width: 100% !important;
    font-size: 14px;
}

/* Registration form */
.dayoff-phone-row {
    margin-bottom: 1em;
}

.dayoff-phone-country-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* My Account points card */
.dayoff-points-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dayoff-points-card h3 {
    color: white;
    margin: 0 0 16px 0;
    font-size: 20px;
    border: none;
}

.dayoff-points-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.dayoff-points-number .points-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.dayoff-points-number .points-label {
    display: block;
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
}

.dayoff-points-level .level-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.dayoff-points-level .level-spent {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 6px;
}

/* Level progress bar */
.dayoff-level-progress {
    margin: 16px 0;
}

.dayoff-level-progress p {
    font-size: 13px;
    margin: 0 0 8px 0;
    opacity: 0.9;
}

.dayoff-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.dayoff-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Points info */
.dayoff-points-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.dayoff-points-info p {
    font-size: 13px;
    margin: 0 0 8px 0;
}

.dayoff-points-info ul {
    margin: 8px 0 0 0;
    padding: 0;
    list-style: none;
}

.dayoff-points-info ul li {
    font-size: 12px;
    padding: 3px 0;
    opacity: 0.9;
}

/* Notice styles */
.dayoff-points-notice {
    margin: 20px 0;
}

.dayoff-points-notice .button {
    margin-top: 8px;
}

/* Register form — email + phone on same row */
.dayoff-required-notice {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f8f8f8;
    border-left: 3px solid #0073aa;
}
.dayoff-register-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.dayoff-register-col {
    flex: 1 1 48%;
    min-width: 200px;
}
.dayoff-register-col p,
.dayoff-register-col .form-row {
    margin-bottom: 0 !important;
}
.dayoff-register-col label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}
.dayoff-register-col label .required {
    color: #e2401c;
    font-weight: bold;
}
.dayoff-register-col .dayoff-phone-country-select {
    margin-bottom: 8px;
}
@media (max-width: 600px) {
    .dayoff-register-col {
        flex: 1 1 100%;
    }
}

/* Hide WooCommerce default password field (our plugin provides its own) */
.woocommerce-form-register > p.woocommerce-form-row--wide > label[for="reg_password"] + input[type="password"][autocomplete="new-password"],
.woocommerce-form-register > p.woocommerce-form-row--wide:has(> label[for="reg_password"]):has(> input[autocomplete="new-password"]) {
    display: none !important;
}

/* Hide WooCommerce password info messages */
.woocommerce-form-register > p.woocommerce-password-policy-info,
.woocommerce-form-register > p[data-no-translation],
.woocommerce-form-register > p:not(.woocommerce-form-row):not(.dayoff-required-notice):not(.dayoff-consent-row) {
    display: none !important;
}

/* Hide WooCommerce default privacy policy text (our plugin provides its own checkbox) */
.woocommerce-form-register .woocommerce-privacy-policy-text {
    display: none !important;
}

/* Consent checkbox row */
.dayoff-consent-row {
    margin-top: 12px !important;
}
.dayoff-consent-label {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #666;
}
.dayoff-consent-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}
.dayoff-consent-text a {
    color: #333;
    text-decoration: underline;
}
.dayoff-consent-text a:hover {
    color: #000;
}

/* Section title in register form */
.dayoff-section-title {
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
    margin-top: 16px !important;
    margin-bottom: 8px !important;
}

/* Password hint */
.dayoff-password-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* Login country code row */
.dayoff-login-country-row {
    margin-bottom: 1em;
}
.dayoff-login-country-row label.dayoff-login-country-label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: normal;
}
.dayoff-login-country-row .dayoff-phone-country-select {
    width: 100%;
    padding: 10px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 4px;
    box-sizing: border-box;
    height: auto;
    line-height: 1.4;
}
.dayoff-phone-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* Phone Login Section */
.dayoff-login-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.dayoff-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}
.dayoff-login-divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    color: #999;
    font-size: 13px;
}
.dayoff-phone-login-section {
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}
.dayoff-phone-login-section h3 {
    margin-top: 0;
    font-size: 16px;
}
.dayoff-phone-login-note {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .dayoff-phone-country,
    .dayoff-phone-number {
        width: 100% !important;
        float: none !important;
    }
    
    .dayoff-phone-country {
        margin-bottom: 8px;
    }
    
    .dayoff-points-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .dayoff-points-number .points-value {
        font-size: 28px;
    }
}
