/**
 * Checkout Page Styles
 * Çiçeksepeti benzeri modern checkout tasarımı
 * Kurumsal Renk: #253928
 */

:root {
    --checkout-primary: #253928;
    --checkout-primary-light: #3a5a3e;
    --checkout-success: #28a745;
    --checkout-warning: #ffc107;
    --checkout-danger: #dc3545;
    --checkout-bg: #f8f9fa;
    --checkout-card-bg: #ffffff;
    --checkout-border: #e0e0e0;
    --checkout-text: #333333;
    --checkout-text-muted: #6c757d;
}

/* Page Layout */
.checkout-page {
    background: var(--checkout-bg);
    min-height: 100vh;
    padding-bottom: 60px;
}

.checkout-header {
    background: linear-gradient(135deg, var(--checkout-primary) 0%, var(--checkout-primary-light) 100%);
    padding: 25px 0;
    margin-bottom: 30px;
}

.checkout-header h1 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.checkout-header .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
}

.checkout-header .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.checkout-header .breadcrumb-item.active {
    color: #fff;
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--checkout-text-muted);
}

.checkout-step.active {
    color: var(--checkout-primary);
}

.checkout-step.completed {
    color: var(--checkout-success);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--checkout-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.checkout-step.active .step-number {
    background: var(--checkout-primary);
    color: #fff;
}

.checkout-step.completed .step-number {
    background: var(--checkout-success);
    color: #fff;
}

/* Main Content */
.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 991px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
}

/* Checkout Card */
.checkout-card {
    background: var(--checkout-card-bg);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    overflow: hidden;
}

.checkout-card-header {
    background: #f8f9fa;
    padding: 16px 24px;
    border-bottom: 1px solid var(--checkout-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-card-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--checkout-text);
}

.checkout-card-header i {
    color: var(--checkout-primary);
    font-size: 20px;
}

.checkout-card-body {
    padding: 24px;
}

/* Recipient Type Selector */
.recipient-type-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.recipient-type-btn {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--checkout-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.recipient-type-btn:hover {
    border-color: var(--checkout-primary);
}

.recipient-type-btn.active {
    border-color: var(--checkout-primary);
    background: rgba(37, 57, 40, 0.05);
}

.recipient-type-btn i {
    font-size: 24px;
    color: var(--checkout-primary);
}

.recipient-type-btn .type-info h6 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
}

.recipient-type-btn .type-info p {
    margin: 0;
    font-size: 12px;
    color: var(--checkout-text-muted);
}

/* Form Styling */
.checkout-form-group {
    margin-bottom: 20px;
}

.checkout-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--checkout-text);
    margin-bottom: 8px;
}

.checkout-form-group label .required {
    color: var(--checkout-danger);
}

.checkout-form-group .form-control,
.checkout-form-group .form-select {
    padding: 12px 16px;
    border: 2px solid var(--checkout-border);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.checkout-form-group .form-control:focus,
.checkout-form-group .form-select:focus {
    border-color: var(--checkout-primary);
    box-shadow: 0 0 0 3px rgba(37, 57, 40, 0.1);
}

.checkout-form-group .form-control::placeholder {
    color: #aaa;
}

.checkout-form-group .input-icon {
    position: relative;
}

.checkout-form-group .input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--checkout-text-muted);
}

.checkout-form-group .input-icon .form-control {
    padding-left: 45px;
}

/* Saved Address */
.saved-address {
    background: #f8fff9;
    border: 2px solid var(--checkout-primary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.saved-address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.saved-address-header h6 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--checkout-primary);
    font-size: 14px;
}

.saved-address-header .btn-change {
    font-size: 13px;
    color: var(--checkout-primary);
    text-decoration: underline;
    cursor: pointer;
}

.saved-address-content p {
    margin: 0;
    font-size: 14px;
    color: var(--checkout-text);
    line-height: 1.6;
}

/* Delivery Date Picker */
.delivery-date-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 576px) {
    .delivery-date-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.delivery-date-option {
    border: 2px solid var(--checkout-border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delivery-date-option:hover {
    border-color: var(--checkout-primary);
}

.delivery-date-option.active {
    border-color: var(--checkout-primary);
    background: rgba(37, 57, 40, 0.05);
}

.delivery-date-option .day-name {
    font-size: 12px;
    color: var(--checkout-text-muted);
}

.delivery-date-option .day-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--checkout-text);
}

.delivery-date-option .month {
    font-size: 11px;
    color: var(--checkout-text-muted);
}

.delivery-date-option.today {
    border-color: var(--checkout-warning);
    background: rgba(255, 193, 7, 0.1);
}

.delivery-date-option.today .day-name {
    color: var(--checkout-warning);
    font-weight: 600;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 576px) {
    .time-slots {
        grid-template-columns: 1fr;
    }
}

.time-slot {
    border: 2px solid var(--checkout-border);
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-slot:hover {
    border-color: var(--checkout-primary);
}

.time-slot.active {
    border-color: var(--checkout-primary);
    background: rgba(37, 57, 40, 0.05);
}

.time-slot i {
    font-size: 20px;
    color: var(--checkout-primary);
}

.time-slot .slot-info {
    flex: 1;
}

.time-slot .slot-info h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.time-slot .slot-info p {
    margin: 0;
    font-size: 12px;
    color: var(--checkout-text-muted);
}

/* Card Message */
.card-message-preview {
    background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
    border: 2px dashed #ffc107;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 16px;
}

.card-message-preview i {
    font-size: 32px;
    color: #ff9800;
    margin-bottom: 10px;
}

.card-message-preview .message-text {
    font-style: italic;
    color: var(--checkout-text);
    line-height: 1.6;
}

.card-message-preview .sender-name {
    margin-top: 12px;
    font-weight: 600;
    color: var(--checkout-primary);
}

/* Order Summary - Sticky */
.order-summary {
    position: sticky;
    top: 20px;
}

.order-summary-card {
    background: var(--checkout-card-bg);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

.order-summary-header {
    background: var(--checkout-primary);
    padding: 16px 24px;

}

.order-summary-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.order-summary-body {
    padding: 20px;
}

/* Product Items */
.order-product-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--checkout-border);
}

.order-product-item:last-child {
    border-bottom: none;
}

.order-product-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-product-info {
    flex: 1;
}

.order-product-info h6 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 500;
}

.order-product-info .quantity {
    font-size: 13px;
    color: var(--checkout-text-muted);
}

.order-product-price {
    font-weight: 600;
    color: var(--checkout-primary);
}

/* Summary Totals */
.order-summary-totals {
    border-top: 2px solid var(--checkout-border);
    padding-top: 16px;
    margin-top: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--checkout-primary);
    padding-top: 12px;
    border-top: 2px solid var(--checkout-border);
    margin-top: 12px;
}

.summary-row .free-shipping {
    color: var(--checkout-success);
    font-weight: 600;
}

/* Submit Button */
.checkout-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--checkout-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.checkout-submit-btn:hover {
    background: var(--checkout-primary-light);
}

.checkout-submit-btn i {
    font-size: 20px;
}

/* Payment Methods */
.payment-method {
    border: 2px solid var(--checkout-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.payment-method:hover {
    border-color: var(--checkout-primary);
}

.payment-method.active {
    border-color: var(--checkout-primary);
    background: rgba(37, 57, 40, 0.05);
}

.payment-method .payment-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--checkout-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-method.active .payment-radio {
    border-color: var(--checkout-primary);
}

.payment-method.active .payment-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--checkout-primary);
    border-radius: 50%;
}

.payment-method i {
    font-size: 24px;
    color: var(--checkout-primary);
}

.payment-method-info h6 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
}

.payment-method-info p {
    margin: 0;
    font-size: 12px;
    color: var(--checkout-text-muted);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--checkout-border);
}

.trust-badge {
    text-align: center;
    font-size: 12px;
    color: var(--checkout-text-muted);
}

.trust-badge i {
    font-size: 24px;
    color: var(--checkout-success);
    margin-bottom: 4px;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .checkout-steps {
        gap: 20px;
    }
    
    .step-text {
        display: none;
    }
    
    .recipient-type-selector {
        flex-direction: column;
    }
    
    .checkout-card-body {
        padding: 16px;
    }
}

/* ================================================================
   BRAND CONSISTENCY OVERRIDES
   Fix Bootstrap defaults that don't match brand palette #253928
   ================================================================ */

/* Override Bootstrap btn-primary to brand forest green everywhere on checkout */
.checkout-page .btn-primary,
.checkout-card .btn-primary,
.checkout-page .btn.btn-primary {
    background-color: var(--checkout-primary) !important;
    border-color: var(--checkout-primary) !important;
    color: #fff !important;
}
.checkout-page .btn-primary:hover,
.checkout-card .btn-primary:hover {
    background-color: #1a2a1c !important;
    border-color: #1a2a1c !important;
}
.checkout-page .btn-primary:focus,
.checkout-page .btn-primary:active {
    background-color: #1a2a1c !important;
    border-color: #1a2a1c !important;
    box-shadow: 0 0 0 3px rgba(37,57,40,.25) !important;
}

/* Coupon row */
.bk-coupon-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}
.bk-coupon-row .form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px !important;
    padding: 0 14px !important;
    line-height: 48px !important;
    font-size: .9rem !important;
    border-radius: 10px 0 0 10px !important;
    border-right: 0 !important;
    box-sizing: border-box !important;
}

/* Coupon Apply Button */
.bk-coupon-apply-btn {
    background: var(--checkout-primary);
    color: #fff;
    border: none;
    border-radius: 0 10px 10px 0;
    height: 48px;
    padding: 0 22px;
    font-size: .88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 auto;
}
.bk-coupon-apply-btn:hover { background: #1a2a1c; }
.bk-coupon-apply-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,57,40,.25);
}

/* Fix Bootstrap alert colors */
.checkout-page .alert-info {
    background: #e8f5f0;
    border-color: rgba(37,57,40,.2);
    color: #253928;
}
.checkout-page .alert-info .bi { color: #253928; }

/* Fix Bootstrap badge colors */
.checkout-card-header .badge.bg-success {
    background-color: #253928 !important;
    color: #fff !important;
}

/* Fix form-check-input accent color */
.checkout-page .form-check-input:checked {
    background-color: var(--checkout-primary) !important;
    border-color: var(--checkout-primary) !important;
}
.checkout-page .form-switch .form-check-input:checked {
    background-color: var(--checkout-primary) !important;
}

/* Fix form-control focus ring to brand */
.checkout-page .form-control:focus,
.checkout-page .form-select:focus {
    border-color: var(--checkout-primary) !important;
    box-shadow: 0 0 0 3px rgba(37,57,40,.1) !important;
}

/* Trust badge icon color fix */
.trust-badge i {
    color: var(--checkout-primary) !important;
    display: block;
}

.checkout-steps {
    position: relative;
}

