/**
 * Checkout Page Styles
 * Blue accent: #3BC1F4
 * 
 * @package EpicDecks_Core
 */

/* ============================================
   WRAPPER & HEADER
   ============================================ */

.epicdecks-checkout-wrapper {
    width: 1400px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.epicdecks-checkout-wrapper *,
.epicdecks-checkout-wrapper *::before,
.epicdecks-checkout-wrapper *::after {
    box-sizing: border-box;
}

/* All step content fills exact same 1200px block */
.epicdecks-checkout-content {
    width: 100%;
}

.epicdecks-checkout-step {
    width: 100%;
}

.epicdecks-checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

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

.epicdecks-checkout-contact {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    color: #6b7280;
}

.epicdecks-checkout-contact a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
}

.epicdecks-checkout-contact a:hover {
    color: #3BC1F4;
}

/* ============================================
   STEP INDICATOR (task 1 - clickable)
   ============================================ */

.epicdecks-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.epicdecks-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 24px;
    background: #f9fafb;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    border-right: 1px solid #e5e7eb;
    cursor: pointer;
    user-select: none;
}

.epicdecks-step:hover {
    background: #f3f4f6;
}

.epicdecks-step:last-child {
    border-right: none;
}

.epicdecks-step .step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #9ca3af;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.epicdecks-step.is-active {
    background: #fff;
    color: #3BC1F4;
}

.epicdecks-step.is-active:hover {
    background: #f0fdfa;
}

.epicdecks-step.is-active .step-number {
    background: #3BC1F4;
    color: #fff;
}

.epicdecks-step.is-completed {
    background: #fff;
    color: #6b7280;
}

.epicdecks-step.is-completed:hover {
    background: #f0fdf4;
}

.epicdecks-step.is-completed .step-number {
    background: #10b981;
    color: #fff;
}

/* ============================================
   STEP 1: CART ITEMS
   ============================================ */

.epicdecks-cart-items {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

/* Cart item grid layout:
   image(70px) | title(1fr) | stock(150px) | price/ks(auto) | subtotal(auto) | qty(120px) | remove(36px) 
*/
.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr 150px auto auto 120px 36px;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

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

.cart-item.is-removing {
    display: none;
}

/* 1. Image */
.cart-item__image img {
    width: 55px;
    height: 75px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* 2. Title (with text limit) */
.cart-item__details {
    min-width: 0;
    overflow: hidden;
}

.cart-item__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item__title a {
    color: #111827;
    text-decoration: none;
}

.cart-item__title a:hover {
    color: #3BC1F4;
}

/* 3. Stock badge (fixed column) */
.cart-item__stock {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item__stock .stock-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
}

.stock-badge.instock {
    background: #d1fae5;
    color: #065f46;
}

.stock-badge.backorder {
    background: #fef3c7;
    color: #92400e;
}

.stock-badge.outofstock {
    background: #fef2f2;
    color: #991b1b;
}

/* 4. Unit price (per piece) */
.cart-item__unit-price {
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
    text-align: right;
}

/* 5. Line subtotal (bold) */
.cart-item__subtotal {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    text-align: right;
}

/* 6. Quantity (mini-cart style) */
.cart-item__quantity {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 3px;
}

.cart-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    background: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #374151;
    transition: all 0.15s;
}

.cart-qty-btn:hover {
    background: #3BC1F4;
    color: #fff;
    transform: scale(1.05);
}

.cart-qty-btn:active {
    transform: scale(0.95);
}

.cart-qty-btn svg {
    stroke: currentColor;
}

.cart-qty-input {
    width: 36px;
    height: 30px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    padding: 0;
    -moz-appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-qty-input:focus {
    outline: none;
}

/* 7. Remove X button (rightmost) */
.cart-item__remove-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item__remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #d1d5db;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    padding: 0;
}

.cart-item__remove:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* ============================================
   DELIVERY ESTIMATE
   ============================================ */

.epicdecks-delivery-estimate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    margin: 24px 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 14px;
    color: #374151;
}

.epicdecks-delivery-estimate svg {
    color: #6b7280;
}

.epicdecks-delivery-estimate strong {
    color: #111827;
}

/* ============================================
   SUMMARY ROW (Coupon + Shipping + Total)
   ============================================ */

.epicdecks-checkout-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

/* Coupon Box (task 10) */
.epicdecks-coupon-box {
    background: #fef9e7;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 20px;
}

.epicdecks-coupon-box h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #374151;
}

.epicdecks-coupon-box .highlight {
    color: #3BC1F4;
}

.coupon-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.coupon-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    min-width: 0;
}

.coupon-form input:focus {
    outline: none;
    border-color: #3BC1F4;
}

.btn-coupon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-coupon:hover {
    background: #e5e7eb;
}

.btn-coupon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Coupon messages */
.coupon-message {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.coupon-message--success {
    background: #d1fae5;
    color: #065f46;
}

.coupon-message--error {
    background: #fef2f2;
    color: #991b1b;
}

/* Applied coupons */
.applied-coupons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.applied-coupon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    font-size: 12px;
    transition: opacity 0.2s;
}

.coupon-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #065f46;
    font-weight: 600;
}

.remove-coupon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.15s;
}

.remove-coupon:hover {
    color: #dc2626;
    background: #fef2f2;
}

/* ============================================
   SHIPPING PROGRESS (tasks 11, 12)
   ============================================ */

.epicdecks-shipping-info {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    overflow: hidden;
    background: #e8edf2;
    border: 1px solid #c9d1d9;
}

/* Progress background fill - fills from LEFT to RIGHT */
.shipping-progress-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.shipping-progress-fill {
    height: 100%;
    background: #d4e6f1;
    transition: width 0.6s ease;
    border-radius: 0;
}

/* When free shipping is achieved - green */
.epicdecks-shipping-info.is-free {
    background: #ecfdf5;
    border-color: #6ee7b7;
}

.epicdecks-shipping-info.is-free .shipping-progress-bg {
    display: none;
}

/* Content above the fill */
.shipping-progress-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.shipping-progress-content svg {
    color: #8b5cf6;
}

.epicdecks-shipping-info.is-free .shipping-progress-content svg {
    color: #059669;
}

.shipping-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
}

.shipping-text strong {
    color: #111827;
}

.shipping-text .remaining-amount {
    color: #8b5cf6;
    font-weight: 700;
}

.epicdecks-shipping-info.is-free .shipping-text {
    color: #065f46;
}

.epicdecks-shipping-info.is-free .shipping-text strong {
    color: #059669;
}

/* ============================================
   TOTAL BOX (task 13 - black total, not purple)
   ============================================ */

.epicdecks-total-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.total-row.small {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 16px;
}

/* Task 13: Total amount is black, not purple */
.total-amount {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

/* Discount row */
.discount-row {
    font-size: 13px;
}

.discount-amount {
    font-weight: 600;
    color: #dc2626;
}

/* Coupon row in step 1 total box */
.total-row.coupon-row {
    font-size: 13px;
    padding-bottom: 4px;
}

.total-row.coupon-row .coupon-badge {
    display: inline-block;
    padding: 1px 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    letter-spacing: 0.3px;
}

.total-row.coupon-row .coupon-discount {
    color: #059669;
    font-weight: 600;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: #3BC1F4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #2aa5d1;
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #f9fafb;
    color: #374151;
}

.btn-full {
    width: 100%;
}

.btn-login {
    display: inline-block;
    padding: 10px 20px;
    background: #f59e0b;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.btn-login:hover {
    background: #d97706;
}

.btn-submit {
    flex-direction: column;
    padding: 16px 28px;
    background: #ec4899;
}

.btn-submit:hover {
    background: #db2777;
}

.btn-subtitle {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
}

/* ============================================
   STEP 2 & 3: TWO COLUMN LAYOUT
   ============================================ */

.checkout-layout-2col {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    width: 100%;
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* Country inline row */
.epicdecks-country-row {
    padding: 14px 24px;
}

.country-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.country-inline svg {
    color: #6b7280;
    flex-shrink: 0;
}

.country-inline h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #111827;
    white-space: nowrap;
}

.country-select {
    max-width: 240px;
}

/* Form Sections */
.epicdecks-form-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    min-width: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.section-header svg {
    color: #6b7280;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

/* Login prompt */
.login-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
}

/* Account registration password fields */
.account-password-fields {
    margin-top: 12px;
    padding: 16px;
    background: #eaf8fd;
    border: 1px solid #bae6fd;
    border-radius: 8px;
}

.field-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 8px 0 0;
}

/* Shipping & Payment Methods */
.shipping-methods,
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-method,
.payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 0;
}

.shipping-method:hover,
.payment-method:hover {
    border-color: #3BC1F4;
}

.shipping-method.is-selected,
.payment-method.is-selected {
    border-color: #3BC1F4;
    background: #f0fdfa;
}

.shipping-method input,
.payment-method input {
    display: none;
}

.method-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s;
}

.shipping-method.is-selected .method-check,
.payment-method.is-selected .method-check {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.method-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.method-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.method-desc {
    font-size: 12px;
    color: #6b7280;
    word-break: break-word;
    overflow-wrap: break-word;
}

.packeta-selector,
.ppl-parcelshop-selector {
    font-size: 12px;
    color: #3BC1F4;
    text-decoration: none;
    font-weight: 600;
}

.packeta-selector:hover,
.ppl-parcelshop-selector:hover {
    text-decoration: underline;
}

.ppl-parcelshop-selector {
    color: #005ca9;
}

.method-logo {
    flex-shrink: 0;
}

.method-price {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.method-price .free {
    color: #10b981;
}

.method-price .discount-green,
.row-value .discount-green {
    color: #059669;
    font-weight: 700;
}

/* Form Fields */
.form-row {
    margin-bottom: 16px;
}

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

.form-row label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-row .required {
    color: #dc2626;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #3BC1F4;
    box-shadow: 0 0 0 3px rgba(59, 193, 244, 0.1);
}

.form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.phone-input {
    display: flex;
    gap: 8px;
}

.phone-input .form-control {
    flex: 1;
    min-width: 0;
}

.phone-prefix {
    width: 76px;
    min-width: 76px;
    padding: 12px 6px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    flex-shrink: 0;
    flex-grow: 0;
    text-align: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    line-height: 1.2;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    accent-color: #3BC1F4;
    cursor: pointer;
    vertical-align: middle;
}

.checkbox-label span {
    display: inline-block;
    line-height: 1.3;
    margin-top: -1px;
}

.checkbox-label.small {
    font-size: 12px;
    color: #6b7280;
}

.checkbox-label.small span {
    line-height: 1.4;
}

/* Heureka Gift Hint */
.heureka-gift-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 12px;
    color: #374151;
    line-height: 1.4;
}

/* Heureka Popup Overlay */
.heureka-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.heureka-popup {
    background: #fff;
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: heurekaPopupIn 0.25s ease-out;
}

@keyframes heurekaPopupIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.heureka-popup__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.heureka-popup__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.heureka-popup__body {
    padding: 20px 24px;
}

.heureka-popup__product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 12px;
    margin-bottom: 16px;
}

.heureka-popup__img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    flex-shrink: 0;
}

.heureka-popup__product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.heureka-popup__free-badge {
    display: inline-block;
    background: #059669;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    width: fit-content;
}

.heureka-popup__product-info strong {
    font-size: 15px;
    color: #111827;
}

.heureka-popup__desc {
    font-size: 12px;
    color: #6b7280;
}

.heureka-popup__text {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.heureka-popup__actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid #e5e7eb;
}

.heureka-popup__btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.heureka-popup__btn--decline {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.heureka-popup__btn--decline:hover {
    background: #e5e7eb;
}

.heureka-popup__btn--accept {
    background: #3BC1F4;
    color: #fff;
}

.heureka-popup__btn--accept:hover {
    background: #2ab0e3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,193,244,0.3);
}

@media (max-width: 480px) {
    .heureka-popup__actions {
        flex-direction: column-reverse;
    }
    .heureka-popup__product {
        flex-direction: column;
        text-align: center;
    }
    .heureka-popup__free-badge {
        align-self: center;
    }
}

.order-note-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    min-height: 80px;
    resize: vertical;
    box-sizing: border-box;
}

.shipping-address-fields {
    padding: 16px 0 8px;
    margin-top: 4px;
    border-top: 1px solid #f3f4f6;
}

.company-fields {
    padding: 4px 0 8px;
}

/* ============================================
   ORDER SUMMARY SIDEBAR
   ============================================ */

.checkout-sidebar {
    position: sticky;
    top: calc(var(--ed-masthead-h, 121px) + var(--wp-admin--admin-bar--height, 0px) + 16px);
    align-self: start;
}

.epicdecks-order-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.summary-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    font-size: 13px;
}

.item-name {
    color: #374151;
    font-weight: 500;
}

.item-qty {
    color: #6b7280;
}

.item-price {
    font-weight: 600;
    color: #111827;
    text-align: right;
}

.summary-extras {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

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

.row-label {
    color: #6b7280;
}

.row-value {
    font-weight: 600;
    color: #111827;
}

.row-value .free {
    color: #10b981;
}

.row-value .pending {
    color: #f59e0b;
    font-style: italic;
    font-weight: 500;
}

.summary-total {
    margin-bottom: 20px;
}

.total-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.total-label {
    font-size: 14px;
    color: #374151;
}

.total-main .total-amount {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.total-tax {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

.checkout-submit-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.terms-text {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
    margin: 12px 0;
}

.terms-text a {
    color: #3BC1F4;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .checkout-layout-2col {
        grid-template-columns: 1fr;
    }
    
    .checkout-sidebar {
        position: static;
        order: 2; /* Sidebar BELOW main content on mobile */
    }
    
    .checkout-main {
        order: 1; /* Main content FIRST on mobile */
    }
    
    .epicdecks-checkout-summary-row {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr 130px auto auto 110px 32px;
        gap: 10px;
        padding: 14px 16px;
    }
}

@media (max-width: 768px) {
    .epicdecks-checkout-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .epicdecks-checkout-contact {
        flex-direction: column;
        gap: 8px;
    }
    
    .epicdecks-steps {
        flex-direction: column;
    }
    
    .epicdecks-step {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .epicdecks-step:last-child {
        border-bottom: none;
    }
    
    /* Mobil: jako položka v mini-košíku – obrázek vlevo, celý název, pod ním sklad a cena/ks, dole počet a cena. */
    .cart-item {
        grid-template-columns: 52px minmax(0, 1fr) auto 32px;
        grid-template-areas:
            "img title title rm"
            "img stock unit unit"
            "img qty sub sub";
        gap: 6px 10px;
        align-items: center;
        padding: 12px;
    }

    .cart-item__image { grid-area: img; align-self: start; }
    .cart-item__image img { width: 52px; height: 70px; }
    .cart-item__details { grid-area: title; }
    .cart-item__title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        line-height: 1.35;
    }
    .cart-item__remove-col { grid-area: rm; align-self: start; }
    .cart-item__stock { grid-area: stock; justify-content: flex-start; }
    .cart-item__stock .stock-badge { padding: 2px 8px; font-size: 10px; }
    .cart-item__unit-price { grid-area: unit; font-size: 12px; }
    .cart-item__quantity { grid-area: qty; justify-content: flex-start; }
    .cart-item__subtotal { grid-area: sub; font-size: 16px; }

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

/* ============================================
   NO SHIPPING MESSAGE
   ============================================ */

.no-shipping {
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    text-align: center;
}

/* ============================================
   WOOCOMMERCE NOTICES (checkout errors/success)
   ============================================ */

.woocommerce-error,
.woocommerce-message,
.woocommerce-info,
ul.woocommerce-error {
    list-style: none;
    margin: 0 0 20px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.woocommerce-error,
ul.woocommerce-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.woocommerce-error li {
    margin-bottom: 4px;
}

.woocommerce-error li:last-child {
    margin-bottom: 0;
}

.woocommerce-message {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.woocommerce-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* ============================================
   SIDEBAR COUPON BADGE
   ============================================ */

.summary-coupons {
    border-top: 1px dashed #e5e7eb;
    padding-top: 12px;
    margin-top: 4px;
}

.summary-row-coupon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.coupon-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    letter-spacing: 0.5px;
}

.coupon-discount {
    color: #059669 !important;
    font-weight: 600;
}

.summary-row-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.discount-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    color: #1e40af;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ============================================
   STEP 3: SUBMIT SECTION INSIDE SIDEBAR BOX
   ============================================ */

.checkout-submit-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 20px 24px 24px;
    margin-top: -12px; /* Visually merge with summary box above */
}

.checkout-submit-section .btn-back {
    width: 100%;
}

.checkout-submit-section .terms-text {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin: 12px 0;
}

.checkout-submit-section .terms-text a {
    color: #3BC1F4;
    text-decoration: underline;
}

.checkout-submit-section .btn-submit {
    width: 100%;
    margin-top: 8px;
}

/* Method logo inline SVG styling */
.method-logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

/* ============================================
   PAYMENT PROCESSING OVERLAY
   ============================================ */

.epicdecks-payment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epicdecks-payment-overlay__inner {
    text-align: center;
}

.epicdecks-payment-overlay__inner p {
    margin: 16px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.epicdecks-payment-overlay__inner p.small {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    margin-top: 8px;
}

.epicdecks-payment-spinner {
    display: block;
    margin: 0 auto;
}

/* ============================================
   ORDER TABLE TAX ROW
   ============================================ */

.order-items-table .tax-row td {
    padding-top: 4px;
    border-top: none;
}
