/**
 * Bokun Checkout Styles
 */

/* ==========================================
   CHECKOUT WRAPPER
   ========================================== */
.bokun-checkout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==========================================
   PROGRESS STEPS
   ========================================== */
.bokun-checkout-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
}

.bokun-progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
    position: relative;
}

.bokun-progress-step::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 0px;
    background-color: #e5e7eb00;
}

.bokun-progress-step:last-child::after {
    display: none;
}

.bokun-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
}

.bokun-step-label {
    font-size: 14px;
    font-weight: 500;
}

.bokun-progress-step.bokun-step-active,
.bokun-progress-step.bokun-step-current {
    color: #3b82f6;
}

.bokun-progress-step.bokun-step-active .bokun-step-number,
.bokun-progress-step.bokun-step-current .bokun-step-number {
    background-color: #3b82f6;
    color: #ffffff;
}

.bokun-progress-step.bokun-step-active::after {
    background-color: #3b82f6;
}

/* ==========================================
   CHECKOUT CONTENT
   ========================================== */
.bokun-checkout-two-column .bokun-checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.bokun-checkout-single-column .bokun-checkout-content {
    max-width: 800px;
    margin: 0 auto;
}

.bokun-checkout-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #111827;
}

/* ==========================================
   CHECKOUT FORM
   ========================================== */
.bokun-checkout-form {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bokun-form-section {
    margin-bottom: 32px;
}

.bokun-form-section:last-child {
    margin-bottom: 0;
}

.bokun-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #111827;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.bokun-form-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.bokun-form-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.bokun-form-group {
    margin-bottom: 16px;
}

.bokun-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.bokun-form-group .required {
    color: #ef4444;
}

.bokun-form-group input[type="text"],
.bokun-form-group input[type="email"],
.bokun-form-group input[type="tel"],
.bokun-form-group select,
.bokun-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.bokun-form-group input:focus,
.bokun-form-group select:focus,
.bokun-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bokun-form-group input.error,
.bokun-form-group select.error {
    border-color: #ef4444;
}

.bokun-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==========================================
   PAYMENT METHODS
   ========================================== */
.bokun-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.bokun-payment-option:hover {
    border-color: #3b82f6;
    background-color: #f8fafc;
}

.bokun-payment-option input[type="radio"] {
    margin: 0 12px 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.bokun-payment-option input[type="radio"]:checked + .bokun-payment-label {
    color: #3b82f6;
    font-weight: 600;
}

.bokun-payment-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #374151;
}

.bokun-payment-label i {
    font-size: 20px;
}

/* ==========================================
   CHECKBOX LABEL
   ========================================== */
.bokun-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.bokun-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.bokun-checkbox-label a {
    color: #3b82f6;
    text-decoration: none;
}

.bokun-checkbox-label a:hover {
    text-decoration: underline;
}

/* ==========================================
   SUBMIT BUTTON
   ========================================== */
.bokun-checkout-submit {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #10b981;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bokun-checkout-submit:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.bokun-checkout-submit:active {
    transform: translateY(0);
}

.bokun-checkout-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bokun-checkout-submit.loading {
    pointer-events: none;
}

/* ==========================================
   ORDER SUMMARY
   ========================================== */
.bokun-checkout-summary-wrapper {
    position: sticky;
    top: 20px;
}

.bokun-checkout-summary {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bokun-summary-items {
    margin-bottom: 20px;
}

.bokun-summary-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.bokun-summary-item:first-child {
    padding-top: 0;
}

.bokun-summary-item:last-child {
    border-bottom: none;
}

.bokun-summary-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.bokun-summary-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bokun-summary-item-details {
    flex: 1;
    min-width: 0;
}

.bokun-summary-item-details h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.bokun-summary-quantity {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.bokun-summary-item-price {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.bokun-summary-totals {
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.bokun-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
}

.bokun-summary-row:last-child {
    margin-bottom: 0;
}

.bokun-summary-total {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 18px;
    font-weight: 700;
}

.bokun-total-amount {
    color: #10b981;
}

/* ==========================================
   MESSAGES
   ========================================== */
.bokun-checkout-messages {
    margin-top: 20px;
}

.bokun-message {
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
}

.bokun-message-success {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.bokun-message-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.bokun-message-info {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

/* ==========================================
   EMPTY CART
   ========================================== */
.bokun-checkout-empty {
    text-align: center;
    padding: 60px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bokun-empty-icon {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.bokun-checkout-empty h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #111827;
}

.bokun-checkout-empty p {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 24px 0;
}

.bokun-btn-browse {
    display: inline-block;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #3b82f6;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.bokun-btn-browse:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 968px) {
    .bokun-checkout-two-column .bokun-checkout-content {
        grid-template-columns: 1fr;
    }

    .bokun-checkout-summary-wrapper {
        position: static;
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 640px) {
    .bokun-checkout-wrapper {
        padding: 20px 15px;
    }

    .bokun-checkout-form {
        padding: 20px;
    }

    .bokun-form-row-2 {
        grid-template-columns: 1fr;
    }

    .bokun-checkout-progress {
        gap: 10px;
        padding: 15px;
    }

    .bokun-progress-step::after {
        width: 20px;
    }

    .bokun-step-label {
        display: none;
    }

    .bokun-checkout-title {
        font-size: 20px;
    }

    .bokun-section-title {
        font-size: 16px;
    }
}
