/**
 * Zorketing Checkout Styles - Original Design (Purple/Gradient)
 */

/* Base */
body.zorketing-checkout-page {
    overflow-x: hidden !important;
}

.zk-checkout-wrapper *,
.zk-checkout * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    box-sizing: border-box;
}

.zk-checkout-wrapper {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f8 50%, #f5f0f9 100%);
    min-height: 100vh;
    padding: 40px 20px;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Container */
.zk-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    max-width: 1100px;
    width: 100% !important;
    margin: 0 auto !important;
    align-items: start;
    position: relative !important;
}

/* Left Column */
.zk-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0 !important;
    /* Important for grid item sizing */
}

.zk-main-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 10px 0 !important;
}

.zk-back {
    font-size: 24px;
    color: #6b7280 !important;
    text-decoration: none;
}

.zk-back:hover {
    color: #6225C5 !important;
}

/* Cards */
.zk-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    width: 100% !important;
    box-sizing: border-box !important;
}

.zk-card-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    margin: 0 0 20px 0 !important;
}

/* Form Fields */
.zk-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.zk-three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.zk-field-group {
    display: flex;
    flex-direction: column;
}

.zk-field-group.zk-full {
    margin-bottom: 16px;
}

.zk-label {
    font-size: 11px !important;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.zk-input,
.zk-select,
.zk-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px !important;
    color: #1a1a2e;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s;
}

.zk-input:focus,
.zk-select:focus,
.zk-textarea:focus {
    border-color: #6225C5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(98, 37, 197, 0.1);
}

.zk-textarea {
    min-height: 100px;
    resize: vertical;
}

.zk-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Checkbox */
.zk-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    margin-top: 8px;
}

.zk-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6225C5;
}

/* Shipping List */
.zk-shipping-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.zk-shipping-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fff;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
}

.zk-shipping-item:last-child {
    border-bottom: none;
}

.zk-shipping-item.zk-active {
    background: #f3f0ff;
    border-color: #6225C5;
}

.zk-shipping-item input[type="radio"] {
    display: none;
}

.zk-ship-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
}

.zk-ship-cost {
    font-size: 14px;
    font-weight: 600;
    color: #6225C5;
}

/* Secure Note */
.zk-secure-note {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 16px;
}

/* Payment List */
.zk-payment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zk-payment-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    background: #fff !important;
}

.zk-payment-card.zk-active {
    border-color: #6225C5;
    background: #fff !important;
    /* Set to white so content inside looks better */
    box-shadow: 0 0 0 1px #6225C5 inset;
}

.zk-payment-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
}

.zk-payment-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #6225C5;
}

.zk-pay-icon {
    font-size: 20px;
}

.zk-pay-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

/* Expanded Payment Details Content */
.zk-payment-details {
    padding: 20px;
    background: #f8fafc !important;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
    color: #64748b;
    max-width: 100% !important;
    overflow: hidden !important;
}

.zk-payment-details p {
    margin: 0 0 12px 0 !important;
    line-height: 1.5 !important;
}

/* Bank Details Styling Override */
.woocommerce-bacs-bank-details {
    margin-top: 5px !important;
}

.wc-bacs-bank-details-heading {
    display: none !important;
}

ul.wc-bacs-bank-details {
    list-style: none !important;
    padding: 15px !important;
    margin: 0 0 15px 0 !important;
    background: #fff !important;
    border: 2px dashed #6225C5 !important;
    border-radius: 12px !important;
}

ul.wc-bacs-bank-details li {
    padding: 6px 0 !important;
    border: none !important;
    font-size: 13px !important;
    color: #4b5563 !important;
    display: block !important;
}

ul.wc-bacs-bank-details li strong {
    color: #1a1a2e !important;
    font-weight: 600 !important;
}

ul.wc-bacs-bank-details li.account_number strong {
    color: #ff0000 !important;
    font-size: 20px !important;
    display: block !important;
    margin-top: 4px !important;
    font-weight: 800 !important;
}

/* Screenshot Upload Field */
.zk-payment-screenshot-field label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin-bottom: 8px !important;
}

.zk-payment-screenshot-field .description {
    font-size: 12px !important;
    color: #94a3b8 !important;
    margin-top: 8px !important;
}

/* Billing Toggle */
.zk-billing-toggle {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.zk-radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #1a1a2e;
}

.zk-radio-option:last-child {
    border-bottom: none;
}

.zk-radio-option.zk-active {
    background: #f3f0ff;
}

.zk-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #6225C5;
}

/* RIGHT COLUMN - Order Card */
.zk-right-col {
    position: sticky;
    top: 30px;
    min-width: 0 !important;
}

.zk-order-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.zk-order-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 20px 0 !important;
}

/* Order Items */
.zk-order-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.zk-order-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.zk-item-img {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.zk-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zk-qty-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #6225C5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zk-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.zk-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    line-height: 1.3;
}

.zk-item-old-price {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}

.zk-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.zk-item-price.zk-sale {
    color: #10b981;
}

/* ── Delivery / Shipping Section ── */
.zk-delivery-section {
    margin-bottom: 20px;
}

.zk-delivery-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.zk-delivery-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f3f0ff, #ede5ff);
    border-radius: 8px;
    font-size: 14px;
}

.zk-delivery-header-text {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.zk-delivery-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zk-ship-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 0 !important;
}

.zk-ship-card:hover {
    border-color: #d4c4f0;
    background: #fdfcff;
    box-shadow: 0 2px 8px rgba(98, 37, 197, 0.06);
}

.zk-ship-card.zk-selected {
    border-color: #6225C5;
    background: linear-gradient(135deg, #faf8ff 0%, #f3f0ff 100%);
    box-shadow: 0 3px 12px rgba(98, 37, 197, 0.12);
}



/* Hidden native radio */
.zk-ship-card input[type="radio"] {
    display: none;
}

/* Custom radio indicator */
.zk-ship-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    position: relative;
    transition: all 0.25s ease;
    background: #fff;
}

.zk-ship-card.zk-selected .zk-ship-radio {
    border-color: #6225C5;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(98, 37, 197, 0.1);
}

.zk-ship-card.zk-selected .zk-ship-radio::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #6225C5;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    animation: zk-radio-pop 0.2s ease;
}

@keyframes zk-radio-pop {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }

    60% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Emoji icon */
.zk-ship-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f3f0ff;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.zk-ship-card.zk-selected .zk-ship-icon {
    background: linear-gradient(135deg, #ede5ff, #ddd0ff);
    transform: scale(1.05);
}

/* Zone info */
.zk-ship-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.zk-ship-zone {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.zk-ship-card.zk-selected .zk-ship-zone {
    color: #3b1a78;
}

/* Price badge */
.zk-ship-amount {
    font-size: 14px;
    font-weight: 700;
    color: #6225C5;
    background: #f3f0ff;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.zk-ship-card.zk-selected .zk-ship-amount {
    background: #6225C5;
    color: #fff;
    box-shadow: 0 2px 8px rgba(98, 37, 197, 0.3);
}

/* Delivery Row in Totals */
.zk-delivery-row span:last-child {
    color: #6225C5 !important;
    font-weight: 600 !important;
}

/* Totals */
.zk-order-totals {
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.zk-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.zk-total-row span:last-child {
    color: #1a1a2e;
    font-weight: 500;
}

.zk-discount span:last-child {
    color: #10b981;
}

/* Grand Total */
.zk-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.zk-grand-total span:first-child {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.zk-total-amount {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
}

/* Checkout Button */
.zk-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: #6225C5 !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 16px;
}

.zk-checkout-btn:hover {
    background: #5119a8 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(98, 37, 197, 0.35);
}

/* Terms */
.zk-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
}

.zk-terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #6225C5;
}

.zk-terms a {
    color: #6225C5 !important;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .zk-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .zk-right-col {
        position: static;
        order: -1;
    }
}

@media (max-width: 600px) {
    .zk-checkout-wrapper {
        padding: 20px 16px;
    }

    .zk-fields-row,
    .zk-three-col {
        grid-template-columns: 1fr;
    }

    .zk-main-title {
        font-size: 24px !important;
    }

    ul.wc-bacs-bank-details li.account_number strong {
        font-size: 16px !important;
    }
}

/* Theme overrides - Force full width and center */
.zorketing-checkout-page .entry-content,
.zorketing-checkout-page .site-main,
.zorketing-checkout-page main,
.zorketing-checkout-page .content-area,
.zorketing-checkout-page #primary,
.zorketing-checkout-page #content,
.zorketing-checkout-page .post-content,
.zorketing-checkout-page .elementor-section-full_width,
.zk-checkout-page .entry-content,
.zk-checkout-page .site-main,
.zk-checkout-page #primary,
.zk-checkout-page #content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    overflow: visible !important;
}

/* Ensure no parent containers have alignment issues */
.zorketing-checkout-page .hentry,
.zorketing-checkout-page .article {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}