/**
 * Artlook Ecommerce Content Styles
 * 
 * Styling for forms, buttons, and content within ecommerce modals.
 * Uses minimal, clean styling that works with most sites.
 */

/* Form Elements */
.ecommerce-modal-content input[type="text"],
.ecommerce-modal-content input[type="email"],
.ecommerce-modal-content input[type="password"],
.ecommerce-modal-content input[type="tel"],
.ecommerce-modal-content select,
.ecommerce-modal-content textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.ecommerce-modal-content input:focus,
.ecommerce-modal-content select:focus,
.ecommerce-modal-content textarea:focus {
    outline: none;
    border-color: #666;
}

/* Labels */
.ecommerce-modal-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: inherit;
}

/* Buttons - No styling, let host site CSS handle everything */
/* The ecommerce views should output buttons with the host site's button classes */
.ecommerce-modal-content button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Tab Navigation */
.ecommerce-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.ecommerce-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.ecommerce-tab.active {
    color: #333;
    border-bottom-color: #333;
}

.ecommerce-tab:hover {
    color: #333;
}

/* Close Button */
.ecommerce-modal-close,
.ecommerce-panel-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.ecommerce-modal-close:hover,
.ecommerce-panel-close:hover {
    color: #666;
}

/* Toolbar Icons */
.ecommerce-toolbar-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.15s ease;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.ecommerce-toolbar-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.ecommerce-toolbar-icon svg {
    display: block;
}

/* Form Groups */
.ecommerce-form-group {
    margin-bottom: 1.5rem;
}

/* Links */
.ecommerce-modal-content a {
    color: #0066cc;
    text-decoration: none;
}

.ecommerce-modal-content a:hover {
    text-decoration: underline;
}

/* Basket Items */
.ecommerce-basket-items .ecommerce-basket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.ecommerce-basket-items .ecommerce-basket-item:last-child {
    border-bottom: none;
}

.ecommerce-basket-items .ecommerce-basket-item-details {
    flex: 1;
}

.ecommerce-basket-items .ecommerce-basket-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 400;
    color: #333;
}

.ecommerce-basket-items .ecommerce-basket-item-details .ecommerce-basket-item-artist {
    margin: 0 0 8px 0;
    color: #999;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.ecommerce-basket-items .ecommerce-basket-item-details .ecommerce-basket-item-price {
    margin: 0;
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.ecommerce-basket-items .ecommerce-basket-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 10px;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.ecommerce-basket-items .ecommerce-basket-item-remove:hover {
    color: #e74c3c;
}

/* Basket Total */
.ecommerce-basket-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin-top: 20px;
    font-size: 14px;
    border-top: 1px solid #e0e0e0;
}

/* Basket Actions */
.ecommerce-basket-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Empty State */
.ecommerce-empty-basket {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

/* Checkout Form */
.checkout-section {
    margin-bottom: 2rem;
}

.checkout-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Address Fields */
.address-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.address-fields .full-width {
    grid-column: 1 / -1;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-method {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.payment-method.selected {
    border-color: #333;
    background: #f8f9fa;
}

.payment-method:hover {
    border-color: #666;
}

/* Messages */
.ecommerce-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.ecommerce-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ecommerce-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ecommerce-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading State */
.ecommerce-loading {
    text-align: center;
    padding: 2rem;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .address-fields {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        flex-direction: column;
    }
}
