/*
Frontend styles for Lean Cart Share and Save.

Table of contents:
==================
1. Button wrapper
2. Popup overlay and modal
3. Form elements
4. Responsive design
*/

/* 1. Button wrapper
================================================== */

.lean-csns-buttons-wrapper {
    margin: 10px 0;
}

.lean-csns-buttons-wrapper button,
.woocommerce-js .lean-csns-buttons-wrapper button {
    margin-left: 10px;
}

/* 2. Popup overlay and modal
================================================== */

.lean-csns-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: none;
}

.lean-csns-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 400px;
    width: 90%;
    z-index: 1000000;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lean-csns-popup h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.lean-csns-popup-content {
    text-align: left;
}

/* 3. Form elements
================================================== */

.lean-csns-popup input[type="text"],
.lean-csns-popup input[type="url"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
}

.lean-csns-popup input[type="text"]:focus,
.lean-csns-popup input[type="url"]:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.lean-csns-popup-buttons {
    text-align: right;
    margin-top: 15px;
}

.lean-csns-popup-buttons button {
    margin-left: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    -webkit-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
}

.lean-csns-popup-buttons button[type="button"] {
    background: #007cba;
    color: white;
}

.lean-csns-popup-buttons button[type="button"]:hover {
    background: #005a87;
}

.lean-csns-popup-buttons .button-secondary {
    background: #f7f7f7;
    color: #555;
    border: 1px solid #ccc;
}

.lean-csns-popup-buttons .button-secondary:hover {
    background: #e8e8e8;
}

/* 4. Responsive design
================================================== */

@media (max-width: 480px) {
    .lean-csns-popup {
        width: 95%;
        padding: 15px;
    }
    
    .lean-csns-popup-buttons {
        text-align: center;
    }
    
    .lean-csns-popup-buttons button {
        margin: 5px;
        display: block;
        width: 100%;
    }
    
    .lean-csns-buttons-wrapper button {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}