/* === FP Order flow shared styles === */
.fp-order { background: #f9fafb; padding-bottom: 0; }
.fp-order-header { background: #f8fafc; padding: 16px 0 20px; }
.fp-order-body { padding: 32px 0; }
.fp-order-breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    font-size: 13px; color: #6b7280; margin: 0 0 16px;
    list-style: none; padding: 0;
}
.fp-order-breadcrumb a { color: #6b7280; text-decoration: none; }
.fp-order-breadcrumb a:hover { color: var(--cz-primary, #361FDB); }
.fp-order-breadcrumb li + li::before { content: '/'; color: #d1d5db; margin: 0 6px; }
.fp-order-breadcrumb .active { color: #111827; font-weight: 500; }

/* Stepper */
.fp-stepper {
    display: flex; align-items: center; gap: 0;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 14px 20px; flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none;
}
.fp-stepper::-webkit-scrollbar { display: none; }
.fp-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #9ca3af; white-space: nowrap; flex-shrink: 0; }
.fp-step.active { color: var(--cz-primary, #361FDB); font-weight: 600; }
.fp-step.done { color: #16a34a; }
.fp-step-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: #f3f4f6; color: #6b7280;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}
.fp-step.active .fp-step-num { background: var(--cz-primary, #361FDB); color: #fff; }
.fp-step.done .fp-step-num { background: #16a34a; color: #fff; }
.fp-step-sep { flex: 1; min-width: 24px; height: 2px; background: #e5e7eb; margin: 0 16px; border-radius: 2px; }
.fp-step.done + .fp-step-sep, .fp-step.active + .fp-step-sep { background: #d1d5db; }

/* Layout */
.fp-cart-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.fp-cart-left { flex: 1 1 60%; min-width: 320px; }
.fp-cart-right { flex: 0 0 380px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
@media (max-width: 991.98px) {
    .fp-cart-right { flex: 1 1 100%; position: static; }
}

.fp-cart-card {
    border-radius: 14px;
    padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.fp-promo-card, .fp-cart-summary{
    background: white; border: 1px solid #e5e7eb; border-radius: 14px;
}

#totalCartAmount2{
    color: var(--cz-primary, #361FDB)
}

.fp-cart-head {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #f1f3f5;
}
.fp-cart-head h1 { font-size: 22px; font-weight: 700; color: #111827; margin: 0; }
.fp-cart-clear {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: #dc3545; background: none; border: 0; cursor: pointer;
    font-weight: 500;
}
.fp-cart-clear:hover { text-decoration: underline; }

/* Free shipping progress */
.fp-cart-progress {
    background: #ede9fe; border-radius: 12px; padding: 14px 16px;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 14px;
}
.fp-cart-progress i { font-size: 22px; color: #5b21b6; flex-shrink: 0; }
.fp-cart-progress-text { flex: 1; font-size: 13px; color: black; font-weight: 600; }
.fp-cart-progress-bar { height: 6px; background: #ddd6fe; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.fp-cart-progress-bar > span { display: block; height: 100%; background: var(--cz-primary, #361FDB); transition: width .3s; }
.fp-cart-progress-done { background: #dcfce7; }
.fp-cart-progress-done i, .fp-cart-progress-done .fp-cart-progress-text { color: #166534; }
.fp-cart-progress-done .fp-cart-progress-bar { background: #bbf7d0; }
.fp-cart-progress-done .fp-cart-progress-bar > span { background: #16a34a; }

/* Cart items */
.fp-cart-items { display: flex; flex-direction: column; background: white; border: 1px solid #e5e7eb; border-radius: 12px; }
.fp-cart-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px 0; border-bottom: 1px solid #f1f3f5;
    position: relative;
}
.fp-cart-item:last-child { border-bottom: 0; }
.fp-cart-item-img {
    flex: 0 0 96px; width: 96px; height: 96px;
    border-radius: 12px; overflow: hidden;
    background: #f9fafb; display: flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.fp-cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.fp-cart-item-body { flex: 1; min-width: 0; padding-right: 32px; }
.fp-cart-item-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #6b7280; display: block; text-decoration: none; margin-bottom: 4px; }
.fp-cart-item-cat:hover { color: var(--cz-primary, #361FDB); }
.fp-cart-item-title {
    font-size: 15px; font-weight: 600; color: #111827;
    display: block; text-decoration: none; line-height: 1.3; margin-bottom: 8px;
}
.fp-cart-item-title:hover { color: var(--cz-primary, #361FDB); }
.fp-cart-item-attrs { font-size: 12px; color: #6b7280; display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.fp-cart-item-attrs strong { color: #374151; font-weight: 600; }
.fp-cart-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.fp-cart-item-qty {
    display: flex; align-items: stretch;
    border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden;
    height: 36px;
}
.fp-cart-item-qty button {
    width: 32px; border: 0; background: #fff; color: #111827; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.fp-cart-item-qty button:hover { background: #f3f4f6; }
.fp-cart-item-qty input {
    width: 40px; border: 0; text-align: center; font-weight: 600;
    background: #fff; outline: none; font-size: 13px;
}
.fp-cart-item-qty input::-webkit-inner-spin-button,
.fp-cart-item-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.fp-cart-item-pricebox { text-align: right; }
.fp-cart-item-old { color: #9ca3af; font-size: 13px; display: block; }
.fp-cart-item-price { font-size: 16px; font-weight: 700; color: var(--cz-primary, #361FDB);  }

.fp-cart-item-remove {
    position: absolute; top: 18px; right: 0;
    background: none; border: 0; color: #9ca3af; cursor: pointer;
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}
.fp-cart-item-remove:hover { background: #fee2e2; color: #dc3545; }

.fp-cart-empty { text-align: center; padding: 48px 16px; }
.fp-cart-empty img { max-width: 220px; margin-bottom: 16px; }
.fp-cart-empty h3 { font-size: 18px; color: #111827; margin-bottom: 16px; }

.fp-cart-continue {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--cz-primary, #361FDB); ; text-decoration: none;
    margin-top: 24px; font-weight: 500;
}
.fp-cart-continue:hover { color: var(--cz-primary, #361FDB); }

/* Summary card */
.fp-summary-title { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #f1f3f5; }
.fp-summary-row { display: flex; justify-content: space-between; font-size: 14px; color: #374151; padding: 8px 0; }
.fp-summary-shipping { color: #16a34a; font-weight: 600; }
.fp-summary-total {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-top: 16px; margin-top: 8px; border-top: 1px solid #f1f3f5;
}
.fp-summary-total .label { font-size: 14px; color: #6b7280; font-weight: 500; }
.fp-summary-total .value { font-size: 24px; font-weight: 800; color: #111827; }
.fp-summary-total .value small { font-size: 13px; font-weight: 600; color: var(--cz-primary, #361FDB); margin-left: 6px; }

.fp-summary-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 48px; border-radius: 10px;
    font-weight: 600; font-size: 14px; text-decoration: none;
    margin-top: 12px; border: 0; cursor: pointer;
    transition: filter .2s, transform .2s;
}
.fp-summary-btn-primary { background: var(--cz-primary, #361FDB); color: #fff !important; }
.fp-summary-btn-primary:hover { filter: brightness(1.08); color: #fff !important; transform: translateY(-1px); }
.fp-summary-btn-success { background: #16a34a; color: #fff !important; }
.fp-summary-btn-success:hover { filter: brightness(1.08); color: #fff !important; transform: translateY(-1px); }
.fp-summary-btn-outline { background: #fff; color: #374151 !important; border: 1px solid #e5e7eb; }
.fp-summary-btn-outline:hover { background: #f9fafb; }

/* Payment methods + trust */
.fp-payment-methods { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; justify-content: center; }
.fp-pay-chip {
    background: #f3f4f6; color: #374151;
    padding: 6px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 600;
}
.fp-trust { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f1f3f5; }
.fp-trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7280; }
.fp-trust-item i { color: #16a34a; font-size: 14px; }

/* Promo code */
.fp-promo-title { font-size: 14px; font-weight: 700; color: #111827; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .4px; }
.fp-promo-title i { color: var(--cz-primary, #361FDB); }
.fp-promo-form { display: flex; gap: 0; }
.fp-promo-input {
    flex: 1; height: 44px; border: 1px solid #e5e7eb; border-right: 0;
    border-radius: 10px 0 0 10px; padding: 0 14px; font-size: 13px; outline: none;
}
.fp-promo-input:focus { border-color: var(--cz-primary, #361FDB); }
.fp-promo-input.is-locked, .fp-promo-input[readonly] { background: #f3f4f6; color: #6b7280; cursor: not-allowed; padding-right: 38px; }
.fp-promo-btn:disabled { background: #9ca3af; cursor: not-allowed; }
.fp-promo-input-wrap { position: relative; flex: 1; display: flex; }
.fp-promo-input-wrap .fp-promo-input { flex: 1; }
.fp-promo-remove {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 24px; height: 24px; border-radius: 50%;
    background: #fee2e2; color: #dc3545; border: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px;
}
.fp-promo-remove:hover { background: #fecaca; }
.fp-promo-btn {
    height: 44px; padding: 0 18px; border: 0;
    background: var(--cz-primary, #361FDB); color: #fff;
    border-radius: 0 10px 10px 0; font-weight: 600; cursor: pointer; font-size: 13px;
}
.fp-promo-btn:hover { filter: brightness(1.08); }
.fp-promo-hint { font-size: 12px; color: #6b7280; margin: 10px 0 0; }

/* Service badges bottom */
.fp-order-badges { background: #fff; border-top: 1px solid #e5e7eb; padding: 24px 0; margin-top: 24px; }
.fp-order-badges .fp-badge-item { display: flex; align-items: center; gap: 12px; }
.fp-order-badges .fp-badge-icon {
    flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
    background: #eef2ff; color: var(--cz-primary, #361FDB);
    display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.fp-order-badges .fp-badge-text strong { display: block; font-size: 13px; font-weight: 600; color: #1f2937; line-height: 18px; }
.fp-order-badges .fp-badge-text small { font-size: 11px; color: #9ca3af; line-height: 14px; }

/* Forms (delivery / payment / confirm) */
.fp-form-section { margin-bottom: 28px; }
.fp-form-section-title { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.fp-form-section-title .num {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--cz-primary, #361FDB); color: #fff;
    font-size: 13px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
#confirmOrderForm, #quickOrderForm{ border-radius: 14px; background: white; border: 1px solid #e5e7eb; padding: 1rem;}
.fp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 575.98px) { .fp-form-row { grid-template-columns: 1fr; } }
.fp-form-group { display: flex; flex-direction: column; }
.fp-form-group label { font-size: 13px; color: #374151; font-weight: 500; margin-bottom: 6px; }
.fp-form-group input, .fp-form-group select, .fp-form-group textarea {
    height: 44px; padding: 0 14px;
    border: 1px solid #e5e7eb; border-radius: 10px;
    font-size: 14px; outline: none; background: #fff;
}
.fp-form-group textarea { height: 88px; padding-top: 10px; }
.fp-form-group input:focus, .fp-form-group select:focus, .fp-form-group textarea:focus { border-color: var(--cz-primary, #361FDB); }
.fp-form-group .invalid-feedback { font-size: 12px; color: #dc3545; margin-top: 4px; }

.fp-radio-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 10px;
    cursor: pointer; transition: border-color .15s, background .15s;
    margin-bottom: 8px;
}
.fp-radio-card:hover { border-color: var(--cz-primary, #361FDB); }
.fp-radio-card input { accent-color: var(--cz-primary, #361FDB); }
.fp-radio-card input:checked + .fp-radio-card-label { color: var(--cz-primary, #361FDB); font-weight: 600; }
.fp-radio-card.is-active { border-color: var(--cz-primary, #361FDB); background: rgba(54,31,219,0.05); }
.fp-radio-card-label { flex: 1; font-size: 14px; color: #374151; }
.fp-radio-card small { font-size: 12px; color: #6b7280; display: block; }

.fp-order-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.fp-order-actions > * { flex: 1; min-width: 200px; }
