/* ====================
   WCM Custom Styles
   ==================== */

/* Buy Now Buttons */
.wcm-buy-now-btn {
    display: inline-block;
    padding: 14px 30px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.wcm-buy-now-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* Modal Overlay */
.wcm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* Modal Card - Dark Mode */
.wcm-modal-card {
    background: #1a1a2e;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    font-family: 'Open Sans', sans-serif;
    animation: wcmSlideUp 0.4s ease-out;
    margin: 20px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes wcmSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button - Dark Mode */
.wcm-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 35px;
    height: 35px;
    line-height: 1;
    transition: color 0.2s;
}

.wcm-close-btn:hover {
    color: #fff;
}

/* Modal Title - Dark Mode */
.wcm-modal-card h3 {
    color: #fff;
}

/* Input Groups */
.wcm-input-group {
    margin-bottom: 18px;
}

.wcm-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
}

/* Input Base Style - Dark Mode */
.wcm-input-base {
    background: #0f0f1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.wcm-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 15px;
    color: #fff;
    outline: none;
    font-family: 'Open Sans', sans-serif;
}

.wcm-input::placeholder {
    color: #888;
}

.wcm-input:focus {
    background: #16213e;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

/* Phone Input Wrapper */
.wcm-phone-wrapper {
    display: flex;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
}

.wcm-phone-wrapper:focus-within {
    background: #16213e;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.wcm-phone-code {
    background: transparent;
    padding: 14px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 600;
    white-space: nowrap;
}

.wcm-phone-input {
    background: transparent;
    border: none;
    padding: 14px;
    flex: 1;
    font-size: 15px;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
}

.wcm-phone-input::placeholder {
    color: #888;
}

/* Discount Trigger - Dark Mode */
.wcm-discount-trigger-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.wcm-discount-trigger-box:hover {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #fff;
}

.wcm-discount-input-container {
    margin-bottom: 20px;
}

.wcm-discount-flex {
    display: flex;
    gap: 10px;
}

.wcm-btn-apply {
    background: #28a745;
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.wcm-btn-apply:hover {
    background: #218838;
}

#wcm-coupon-message {
    font-size: 13px;
    margin-top: 8px;
}

.wcm-text-success {
    color: #28a745;
}

.wcm-text-error {
    color: #dc3545;
}

/* Summary Rows - Dark Mode */
.wcm-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #e0e0e0;
    padding: 8px 0;
}

.wcm-total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
}

/* Terms Checkbox */
.wcm-terms-group {
    margin-bottom: 20px;
}

.wcm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #ccc;
    cursor: pointer;
}

.wcm-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #28a745;
}

.wcm-checkbox-label a {
    color: #4ade80;
    text-decoration: underline;
}

.wcm-checkbox-label a:hover {
    color: #28a745;
}

/* Pay Button */
.wcm-btn-green {
    background: #28a745;
    color: white;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.wcm-btn-green:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.wcm-btn-green:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Thank You Page Styles */
.wcm-thankyou-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Open Sans', sans-serif;
}

.wcm-thankyou-header {
    text-align: center;
    margin-bottom: 40px;
}

.wcm-success-icon {
    margin-bottom: 20px;
}

.wcm-thankyou-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    margin: 10px 0;
    color: #333;
}

.wcm-thankyou-subtitle {
    font-size: 18px;
    color: #666;
}

.wcm-order-details {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.wcm-order-details h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.wcm-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.wcm-detail-row:last-child {
    border-bottom: none;
}

.wcm-detail-label {
    font-weight: 600;
    color: #666;
}

.wcm-detail-value {
    font-weight: 700;
    color: #333;
}

.wcm-schedule-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.wcm-schedule-box h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
}

.wcm-schedule-time {
    font-size: 22px;
    font-weight: 700;
    margin: 15px 0;
}

.wcm-schedule-note {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.wcm-whatsapp-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.wcm-whatsapp-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.wcm-whatsapp-section p {
    color: #666;
    margin-bottom: 20px;
}

.wcm-whatsapp-links {
    display: grid;
    gap: 15px;
}

.wcm-whatsapp-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.wcm-whatsapp-button:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.wcm-footer-note {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 16px;
    color: #666;
}

.wcm-footer-note p {
    margin: 10px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .wcm-modal-card {
        padding: 24px;
        margin: 15px;
        max-width: 95%;
    }
    
    .wcm-thankyou-header h1 {
        font-size: 28px;
    }
    
    .wcm-order-details, .wcm-whatsapp-section {
        padding: 20px;
    }
    
    .wcm-detail-row {
        flex-direction: column;
        gap: 5px;
    }
}
