/* ============================================================
   FILE: /user/css/order/checkout.css
   VIEW: Areas/User/Views/Order/Checkout.cshtml
   ============================================================ */

/* Checkout input base */
.checkout-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    outline: none;
}

.checkout-input:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* Payment option active state */
.payment-option {
    transition: all 0.2s ease;
}

.payment-option:has(input:checked) {
    border-color: #0891b2;
    border-width: 2px;
    background-color: #ecfeff;
}

/* Select dropdown styling */
select.checkout-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Cart item rows */
.cart-item-row {
    transition: all 0.3s ease;
}

.cart-item-row:last-child {
    border-bottom: none;
}

/* Quantity controls */
.qty-control {
    height: 28px;
}

.qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: white;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.qty-btn:hover {
    background-color: #f3f4f6;
}

.qty-btn:active {
    background-color: #e5e7eb;
}

.qty-value {
    font-size: 0.8rem;
    line-height: 28px;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

/* Remove button */
.btn-remove-item {
    transition: all 0.2s;
}

.btn-remove-item:hover {
    text-decoration: underline;
}

/* Dark mode */
[data-theme="dark"] .bg-white {
    background-color: #1a1744 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .checkout-input {
    background-color: #0f0c29 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #e5e7eb !important;
}

[data-theme="dark"] label {
    color: #d1d5db !important;
}

[data-theme="dark"] .qty-btn {
    background-color: #0f0c29;
    color: #d1d5db;
}

[data-theme="dark"] .qty-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .qty-value {
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .qty-control {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Select2 Custom Styles to match Tailwind */
.select2-container .select2-selection--single {
    height: 42px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    padding: 0.3rem 0.5rem !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    top: 1px !important;
    right: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #374151 !important;
    font-size: 0.875rem !important;
    line-height: normal !important;
}

[data-theme="dark"] .select2-container .select2-selection--single {
    background-color: #0f0c29 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e5e7eb !important;
}

[data-theme="dark"] .select2-dropdown {
    background-color: #1a1744 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #0891b2 !important;
}

[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: rgba(8, 145, 178, 0.5) !important;
}
