/**
 * Enbarezept Prescription Cart Styles
 */

/* Prescription Options Modal */
#enbarezept-prescription-options-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(41, 157, 143, 0.15) !important;
    backdrop-filter: blur(5px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#enbarezept-prescription-options-modal .enbarezept-modal-content {
    background: white;
    border-radius: 8px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.enbarezept-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.enbarezept-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.enbarezept-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enbarezept-modal-close:hover {
    color: #333;
}

.enbarezept-modal-body {
    padding: 20px;
}

.prescription-product-info h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.1em;
}

.prescription-quantity-section {
    margin-bottom: 20px;
}

.prescription-quantity-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.prescription-quantity-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: white;
}

.prescription-actions {
    margin-bottom: 20px;
}

.prescription-add-to-cart {
    width: 100%;
    padding: 12px;
    background: #299d8f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(41, 157, 143, 0.3);
}

.prescription-add-to-cart:hover {
    background: #228b7e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 157, 143, 0.4);
}

.prescription-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.prescription-cart-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

.success-message {
    color: #28a745;
    font-weight: 600;
    margin: 0 0 20px 0;
    font-size: 1.1em;
}

.cart-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cart-actions .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.cart-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.cart-actions .btn-secondary:hover {
    background: #5a6268;
}

.cart-actions .btn-primary {
    background: #299d8f;
    color: white;
}

.cart-actions .btn-primary:hover {
    background: #228b7e;
}

/* Prescription Cart Badge */
.enbarezept-prescription-cart-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #299d8f;
    color: white;
    border-radius: 50px;
    padding: 8px 15px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(41, 157, 143, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.enbarezept-prescription-cart-badge:hover {
    background: #228b7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(41, 157, 143, 0.4);
}

.enbarezept-prescription-cart-badge .cart-icon {
    font-size: 16px;
}

.enbarezept-prescription-cart-badge .cart-icon::before {
    content: "📋";
    font-style: normal;
}

.enbarezept-prescription-cart-badge .cart-count {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #enbarezept-prescription-options-modal .enbarezept-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-actions .btn {
        width: 100%;
    }
    
    .enbarezept-prescription-cart-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Body modal-open class */
body.modal-open {
    overflow: hidden;
}
