/**
 * Cart Integration Styles
 * Styles for EEP options display in cart, checkout and orders
 */

/* ==========================================================================
   Cart Styles
   ========================================================================== */

.eep-cart-options {
    margin: 12px 0;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    font-size: 14px;
}

.eep-cart-group {
    margin-bottom: 15px;
}

.eep-cart-group:last-child {
    margin-bottom: 0;
}

.eep-cart-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e1e5e9;
}

.eep-cart-group-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.eep-cart-group-count {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.eep-cart-group-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eep-cart-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0;
}

.eep-cart-option-details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.eep-cart-option-name {
    color: #333;
    font-weight: 500;
}

.eep-cart-option-quantity {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: #666;
    background: #e8f4fd;
    padding: 2px 6px;
    border-radius: 3px;
}

.eep-cart-option-quantity strong {
    color: #007cba;
}

.eep-cart-option-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: auto;
}

.eep-unit-price {
    font-size: 11px;
    color: #666;
}

.eep-total-price {
    font-weight: 600;
    color: #007cba;
    font-size: 14px;
}

.eep-cart-option-free {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
    background: #d4edda;
    padding: 2px 6px;
    border-radius: 3px;
}

.eep-cart-option-description {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-left: 12px;
}

.eep-cart-group-total {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e1e5e9;
    text-align: right;
}

.eep-cart-summary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #007cba;
    background: #f0f8ff;
    padding: 12px;
    border-radius: 6px;
}

.eep-cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.eep-cart-summary-label {
    font-weight: 600;
    color: #333;
}

.eep-cart-summary-items {
    font-size: 12px;
    color: #666;
}

.eep-cart-summary-price {
    font-size: 16px;
    font-weight: 700;
    color: #007cba;
}

/* Item extras in cart item name */
.eep-item-extras {
    color: #666;
    font-weight: 400;
    margin-left: 6px;
}

/* ==========================================================================
   Checkout Styles
   ========================================================================== */

.eep-checkout-options {
    margin: 8px 0;
    font-size: 13px;
    color: #666;
}

.eep-checkout-group {
    margin-bottom: 6px;
}

.eep-checkout-group:last-child {
    margin-bottom: 0;
}

.eep-checkout-group-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.eep-checkout-group-name {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.eep-checkout-group-count {
    color: #999;
    font-size: 11px;
}

.eep-checkout-group-options {
    margin-left: 12px;
    line-height: 1.4;
}

.eep-checkout-option {
    display: inline;
}

.eep-checkout-quantity {
    color: #007cba;
    font-weight: 600;
}

.eep-checkout-price {
    color: #007cba;
    font-weight: 600;
}

.eep-option-separator {
    color: #999;
}

.eep-checkout-total {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e1e5e9;
    text-align: right;
    font-size: 12px;
}

.eep-checkout-total-label {
    color: #666;
}

.eep-checkout-total-price {
    font-weight: 600;
    color: #007cba;
    margin-left: 6px;
}

/* ==========================================================================
   Order Styles
   ========================================================================== */

.eep-order-options {
    margin: 15px 0;
    padding: 15px;
    background: #fafafa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
}

.eep-order-options-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e1e5e9;
}

.eep-order-options-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.eep-order-groups {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.eep-order-group {
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.eep-order-group-header {
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.eep-order-group-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.eep-order-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eep-order-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eep-order-option-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.eep-order-option-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.eep-order-option-name {
    font-weight: 500;
    color: #333;
}

.eep-order-option-quantity {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: #666;
    background: #e8f4fd;
    padding: 2px 6px;
    border-radius: 3px;
}

.eep-order-option-quantity strong {
    color: #007cba;
}

.eep-order-option-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.eep-order-unit-price {
    font-size: 11px;
    color: #666;
}

.eep-order-total-price {
    font-size: 14px;
    font-weight: 600;
    color: #007cba;
}

.eep-order-free-option .eep-free-label {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
    background: #d4edda;
    padding: 2px 6px;
    border-radius: 3px;
}

.eep-order-option-description {
    margin-left: 12px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.eep-order-group-summary {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e1e5e9;
}

.eep-order-group-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.eep-group-total-label {
    color: #666;
    font-size: 12px;
}

.eep-group-total-price {
    color: #007cba;
    font-size: 13px;
}

.eep-order-summary {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 2px solid #007cba;
    background: #f0f8ff;
    padding: 12px;
    border-radius: 6px;
}

.eep-order-summary-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eep-order-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.eep-order-summary-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.eep-order-summary-items {
    font-size: 12px;
    color: #666;
}

.eep-order-summary-price {
    font-size: 16px;
    font-weight: 700;
    color: #007cba;
}

/* ==========================================================================
   Email Styles
   ========================================================================== */

.eep-email-view {
    background: transparent !important;
    border: none !important;
    padding: 10px 0 !important;
    margin: 10px 0 !important;
}

.eep-email-view .eep-order-group {
    background: transparent !important;
    border: none !important;
    padding: 8px 0 !important;
    margin-bottom: 8px !important;
}

.eep-email-options-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eep-email-option {
    margin: 0 0 4px 0;
    padding: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.eep-email-option:before {
    content: "• ";
    color: #007cba;
    font-weight: 600;
    margin-right: 4px;
}

.eep-email-summary {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
    font-size: 14px;
}

/* ==========================================================================
   Admin Styles
   ========================================================================== */

.eep-admin-view {
    border-left: 4px solid #007cba;
}

.eep-admin-view .eep-order-options-title {
    color: #007cba;
}

/* ==========================================================================
   Icons
   ========================================================================== */

.eep-icon-multiply:before {
    content: "×";
    font-weight: 600;
    color: #666;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .eep-cart-options {
        padding: 10px;
        font-size: 13px;
    }
    
    .eep-cart-option-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .eep-cart-option-price {
        align-items: flex-start;
        margin-left: 0;
    }
    
    .eep-cart-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .eep-order-option-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .eep-order-option-pricing {
        align-items: flex-start;
    }
    
    .eep-order-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .eep-cart-options {
        padding: 8px;
        font-size: 12px;
    }
    
    .eep-cart-group-name {
        font-size: 13px;
    }
    
    .eep-order-options {
        padding: 12px;
    }
    
    .eep-order-options-title {
        font-size: 15px;
    }
    
    .eep-order-group {
        padding: 10px;
    }
}