/* ============================================
   Checkout Modal
   ============================================ */
.checkout-modal-content {
    max-width: 480px;
    max-height: 85vh;
}

.checkout-summary {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.checkout-summary h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-primary);
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #e5e7eb;
    font-size: 16px;
}

/* Delivery Address Section */
.delivery-address-section {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.delivery-address-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.address-input-group textarea:focus {
    border-color: var(--primary);
}

.map-container-wrapper label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: block;
}

/* Bid Section */
.bid-section {
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.bid-section h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #92400e;
}

.bid-description {
    font-size: 13px;
    color: #a16207;
    margin-bottom: 12px;
}

.bid-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 8px;
    padding: 4px;
}

.bid-currency {
    padding: 10px 12px;
    font-weight: 600;
    color: #92400e;
    background: #fef9c3;
    border-radius: 6px;
}

.bid-input {
    flex: 1;
    padding: 12px;
    border: none;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.bid-note {
    font-size: 12px;
    color: #a16207;
    margin-top: 8px;
    font-style: italic;
}

/* Order Type Section */
.order-type-section {
    margin-bottom: 20px;
}

.order-type-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-type-options {
    display: flex;
    gap: 12px;
}

.order-type-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-type-option:hover {
    border-color: var(--primary);
}

.order-type-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 126, 167, 0.1) 0%, rgba(0, 168, 232, 0.1) 100%);
}

.order-type-icon {
    font-size: 24px;
}

.order-type-info {
    display: flex;
    flex-direction: column;
}

.order-type-info strong {
    font-size: 14px;
    color: var(--text-primary);
}

.order-type-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Checkout Note */
.checkout-note {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.checkout-note p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Payment Section */
.payment-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-options {
    display: flex;
    gap: 12px;
}

.payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.payment-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.payment-icon {
    font-size: 28px;
}

.payment-info {
    display: flex;
    flex-direction: column;
}

.payment-info strong {
    font-size: 14px;
    color: var(--text-primary);
}

.payment-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* QRIS Display */
.qris-display {
    margin-top: 20px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qris-code {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.qris-placeholder {
    width: 180px;
    height: 180px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.qr-pattern {
    width: 140px;
    height: 140px;
    background:
        linear-gradient(90deg, #1f2937 25%, transparent 25%, transparent 75%, #1f2937 75%),
        linear-gradient(#1f2937 25%, transparent 25%, transparent 75%, #1f2937 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border-radius: 8px;
    opacity: 0.2;
}

.qris-placeholder p {
    position: absolute;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.qris-instruction {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Cash Display */
.cash-display {
    margin-top: 20px;
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    animation: fadeIn 0.3s ease;
}

.cash-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.cash-display p {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 14px;
}

.cash-order-number {
    font-size: 18px !important;
    font-weight: 700;
    color: var(--success) !important;
}