/* Minimal Checkout Manager Styles */
.minimal-checkout-wrapper {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #f9f9f9;
}

.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.artworks-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    flex-grow: 1;
}

.summary-text {
    color: #333;
}

.cart-count-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    padding: 0 5px;
    animation: pulse 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.minimal-checkout-container {
    position: relative;
    margin-top: 20px;
    padding: 50px 20px 20px; /* Extra top padding for close button */
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    display: none;
}

.minimal-checkout-btn {
    background: #000;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s;
    white-space: nowrap;
    height: 54px; /* Match height of artworks summary */
}

.minimal-checkout-btn:hover {
    background: #333;
}

.minimal-checkout-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.minimal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f1f1;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 100; /* Ensure it's above other content */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.minimal-close-btn:hover {
    background-color: #e5e5e5;
    transform: rotate(90deg);
}

.minimal-close-btn svg {
    width: 20px;
    height: 20px;
    stroke: #555;
}

.checkout-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #ddd;
}

.checkout-tabs li {
    margin-right: 10px;
}

.checkout-tabs li.active a {
    border-bottom: 3px solid #4CAF50;
    color: #000;
}

.checkout-tabs a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #666;
    font-weight: bold;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.minimal-checkout-fields .form-row {
    margin-bottom: 15px;
}

.minimal-checkout-fields label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.minimal-checkout-fields input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.minimal-payment-section {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.place-order-section {
    margin-top: 25px;
    text-align: right;
}

#place_order {
    background: #0b0b0b;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#place_order:hover {
    background: #45a049;
}

.invalid-field {
    border-color: #ff0000 !important;
}

.option-item {
    position: relative;
    margin-bottom: 10px;
}

.option-item.loading {
    opacity: 0.7;
}

.option-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cart-empty, .error {
    padding: 15px;
    background: #ffdddd;
    border-left: 4px solid #f44336;
    margin: 10px 0;
}

/* Variant selection styles */
.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.variant-option {
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.variant-option.selected {
    border-color: #4CAF50;
    background-color: #f0fff4;
}

.variant-option input[type="radio"] {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .checkout-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .artworks-summary,
    .minimal-checkout-btn {
        width: 100%;
    }
    
    .minimal-checkout-btn {
        height: auto;
        padding: 12px;
    }
}

/* Custom order summary styles */
.custom-order-summary {
    width: 100%;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.minimal-product-name {
    flex: 1;
    padding-right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-total {
    flex-shrink: 0;
    white-space: nowrap;
}

.remove-cart-item {
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 10px;
    color: #cc0000;
    background: rgba(204,0,0,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    visibility: visible !important;
    position: relative;
    z-index: 1;
}

.remove-cart-item:hover {
    color: #fff;
    background: #cc0000;
    transform: scale(1.1);
}

.remove-cart-item svg {
    width: 12px;
    height: 12px;
}

.order-totals {
    margin-top: 20px;
}

.order-totals div {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-totals .total-label {
    font-weight: bold;
}

.order-totals .total-value {
    text-align: right;
}

/* Keep existing styles below */
.minimal-checkout-wrapper {
    margin: 20px 0;
}