/**
 * Modal Close Buttons Fix - CSS Styles
 * Version: 2.0.0
 * Date: 15.02.2026
 */

/* ==================================
   CLOSE BUTTON (×) - IMPROVED VISIBILITY
   ================================== */

.oco-modal-close,
.mao-modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    z-index: 100001 !important;

    /* White circle background */
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;

    /* Center the × symbol */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* × symbol styling */
    font-size: 28px !important;
    font-weight: bold !important;
    color: #666 !important;
    line-height: 1 !important;

    /* Interactive */
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.oco-modal-close:hover,
.mao-modal-close:hover {
    color: #000 !important;
    background: #fff !important;
    transform: scale(1.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

/* ==================================
   CANCEL BUTTON - MATCHING SITE STYLE
   ================================== */

/* One-Click Order Cancel Button (Dark Theme) */
.oco-cancel {
    width: 100% !important; /* Full width like submit button */
    padding: 16px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;

    /* White button with dark border */
    background: #fff !important;
    border: 2px solid #2c3e50 !important;
    color: #2c3e50 !important;

    /* Interactive */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
    border-radius: 0 !important;
}

.oco-cancel:hover {
    background: #2c3e50 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3) !important;
}

/* Make an Offer Cancel Button (Antique Theme) */
.mao-cancel {
    width: 100% !important; /* Full width like submit button */
    padding: 16px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;

    /* White button with antique border */
    background: #fff !important;
    border: 2px solid #8B7355 !important;
    color: #8B7355 !important;

    /* Interactive */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
    border-radius: 0 !important;
}

.mao-cancel:hover {
    background: #8B7355 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3) !important;
}

/* ==================================
   FORM ACTIONS - BUTTON LAYOUT
   ================================== */

.oco-form-actions,
.mao-form-actions {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-top: 20px !important;
}

/* Make submit buttons full width */
.oco-submit,
.mao-submit {
    width: 100% !important;
}

/* ==================================
   Z-INDEX FIXES
   ================================== */

/* Ensure modal content is above overlay */
.oco-modal-content,
.mao-modal-content {
    z-index: 100000 !important;
    position: relative !important;
}

/* Ensure overlay is clickable */
.oco-modal-overlay,
.mao-modal-overlay {
    cursor: pointer !important;
    z-index: 99999 !important;
}

/* ==================================
   PREVENT BODY SCROLL
   ================================== */

body.oco-modal-open,
body.mao-modal-open {
    overflow: hidden !important;
}

/* ==================================
   RESPONSIVE DESIGN
   ================================== */

@media (max-width: 768px) {
    /* Larger close button on mobile */
    .oco-modal-close,
    .mao-modal-close {
        width: 44px !important;
        height: 44px !important;
        font-size: 32px !important;
    }

    /* Buttons already full width and stacked */
    .oco-form-actions,
    .mao-form-actions {
        gap: 15px !important;
    }
}
