/* LandKit — Inline Checkout Styles */

.landkit-checkout-wrapper {
  max-width: 560px;
  margin: 0 auto;
  font-family: inherit;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(0,0,0,.10);
  padding: 16px;
}

/* ── Bundle offers ────────────────────────────────────────────────── */
.landkit-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.landkit-offer-btn {
  border: 1.5px solid #d0d0d0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.landkit-offer-btn strong { font-size: 13px; }
.landkit-offer-btn span { font-size: 13px; color: #444; }
.landkit-offers-quote { font-size: 14px; font-weight: 600; margin-bottom: 10px; text-align: center; color: #333; }
.landkit-offer-note { display: block; font-size: 12px; margin-top: 2px; color: #666; }
.landkit-offer-save { display: inline-block; margin-top: 4px; font-size: 11px; color: #fff; background: #e63946; border-radius: 999px; padding: 2px 8px; font-style: normal; }
.landkit-price-strip {
  display: grid;
  gap: 4px;
  background: #fff7e8;
  border: 1px dashed #e8b766;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  text-align: center;
}
.landkit-price-strip-old { color: #555; font-size: 13px; }
.landkit-price-strip-old strong { text-decoration: line-through; margin-inline-start: 4px; }
.landkit-price-strip-new { color: #111; font-size: 14px; font-weight: 700; }
.landkit-price-strip-new strong { color: #e63946; margin-inline-start: 4px; }
.landkit-price-strip-urgency { color: #b03232; font-size: 12px; font-weight: 700; }
.landkit-offer-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.landkit-offer-btn.is-selected {
  border-color: #000;
  background: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0,0,0,.22);
}
.landkit-offer-btn.is-selected .landkit-offer-note { color: #e5e5e5; }
.landkit-offer-btn.is-selected span { color: #fff; }

/* ── Variations ─────────────────────────────────────────────────── */
.landkit-variations { margin-bottom: 20px; }
.landkit-variation-group { margin-bottom: 12px; }
.landkit-variation-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}
.landkit-variation-options { display: flex; flex-wrap: wrap; gap: 8px; }
.landkit-variation-btn {
  padding: 8px 18px;
  border: 1.5px solid #d0d0d0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: border-color .15s, background .15s;
}
.landkit-variation-btn.is-selected {
  border-color: #000;
  background: #000;
  color: #fff;
}

/* ── Piece color selection ───────────────────────────────────────── */
.landkit-piece-colors { margin: 10px 0 18px; display: grid; gap: 10px; }
.landkit-piece-color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.landkit-piece-attr-row { margin-bottom: 8px; }
.landkit-piece-color-btn,
.landkit-piece-attr-btn {
  border: 1px solid #d0d0d0;
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 13px;
}
.landkit-payment-methods { margin: 8px 0 14px; }
.landkit-payment-method-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 14px;
}
.landkit-piece-color-btn.is-selected,
.landkit-piece-attr-btn.is-selected {
  border-color: #111;
  background: #111;
  color: #fff;
}

/* ── Quantity ────────────────────────────────────────────────────── */
.landkit-qty-wrapper { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.landkit-qty-wrapper label { font-weight: 600; font-size: 14px; min-width: 70px; }
.landkit-qty-controls { display: flex; align-items: center; border: 1.5px solid #d0d0d0; border-radius: 8px; overflow: hidden; }
.landkit-qty-btn {
  width: 40px; height: 40px;
  border: none; background: #f5f5f5;
  font-size: 18px; cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}
.landkit-qty-btn:hover { background: #e8e8e8; }
.landkit-qty-input {
  width: 56px; height: 40px;
  border: none; border-left: 1.5px solid #d0d0d0; border-right: 1.5px solid #d0d0d0;
  text-align: center; font-size: 16px; font-weight: 600;
  -moz-appearance: textfield;
}
.landkit-qty-input::-webkit-outer-spin-button,
.landkit-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Fields ──────────────────────────────────────────────────────── */
.landkit-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.landkit-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.landkit-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #111;
}
.landkit-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #d0d0d0; border-radius: 8px;
  font-size: 15px; font-family: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s; box-sizing: border-box;
  background: #fff;
}
.landkit-input:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,.08); transform: translateY(-1px); }
.landkit-input.is-invalid { border-color: #e63946; }

/* ── Coupon ──────────────────────────────────────────────────────── */
.landkit-coupon-row { display: flex; gap: 8px; margin-bottom: 8px; }
.landkit-coupon-input { flex: 1; }
.landkit-coupon-apply {
  padding: 12px 20px; border: 1.5px solid #000;
  border-radius: 8px; background: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background .15s;
}
.landkit-coupon-apply:hover { background: #f5f5f5; }
.landkit-coupon-msg { font-size: 13px; margin-bottom: 12px; }
.landkit-coupon-msg.is-success { color: #2d8a4e; }
.landkit-coupon-msg.is-error   { color: #e63946; }
.lk-coupon-discount-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--lk-success, #16a34a);
  padding-bottom: 6px;
  border-bottom: 0.5px solid #f0f0f0;
  margin-bottom: 6px;
}
.lk-coupon-discount-amount { font-weight: 700; }

/* ── Order Bump ──────────────────────────────────────────────────── */
.landkit-order-bump {
  background: #fffbeb;
  border: 2px dashed #f59e0b;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.landkit-bump-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.landkit-bump-checkbox { margin-top: 3px; width: 18px; height: 18px; cursor: pointer; }
.landkit-bump-text { font-size: 14px; line-height: 1.5; }

/* ── Summary ─────────────────────────────────────────────────────── */
.landkit-summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-top: 1.5px solid #eee; margin-bottom: 16px;
}
.landkit-summary-label { font-weight: 600; font-size: 15px; }
.landkit-summary-total { font-weight: 700; font-size: 22px; }
.landkit-summary-shipping { border-top: 0; margin-bottom: 0; padding-top: 8px; padding-bottom: 6px; }
.landkit-step { display: none; }
.landkit-step.is-active { display: block; animation: landkit-fadeIn .25s ease; }
.landkit-step-progress { display:flex; align-items:center; gap:8px; justify-content:center; margin-bottom:12px; }
.landkit-step-dot { width:28px; height:28px; border-radius:50%; border:1px solid #bbb; display:flex; align-items:center; justify-content:center; font-size:12px; background:#fff; }
.landkit-step-dot.is-active { background:#111; color:#fff; border-color:#111; }
.landkit-step-line { width:34px; height:2px; background:#ddd; }
.landkit-next-step-btn { width:100%; margin:8px 0 14px; border:1px solid #111; background:#fff; border-radius:8px; padding:11px 14px; font-weight:600; cursor:pointer; }
.landkit-back-step-btn { width:100%; margin:0 0 10px; border:1px solid #111; background:#fff; border-radius:8px; padding:11px 14px; font-weight:600; cursor:pointer; }

/* ── Button ──────────────────────────────────────────────────────── */
.landkit-checkout-btn {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, #000 0%, #2a2a2a 100%); color: #fff;
  border: none; border-radius: 8px;
  font-size: 18px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: opacity .2s, transform .2s, box-shadow .2s;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.landkit-checkout-btn::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -35%;
  width: 25%;
  height: 340%;
  transform: rotate(20deg);
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0));
  animation: landkit-btn-shine 3.5s ease-in-out infinite;
}
.landkit-checkout-btn:hover   { opacity: .94; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.landkit-checkout-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Feedback ────────────────────────────────────────────────────── */
.landkit-checkout-message { min-height: 24px; font-size: 14px; text-align: center; }
.landkit-checkout-message .is-success { color: #2d8a4e; font-weight: 600; }
.landkit-checkout-message .is-error   { color: #e63946; }

/* ── Placeholder (editor only) ───────────────────────────────────── */
.landkit-placeholder {
  padding: 20px; background: #f9f9f9;
  border: 2px dashed #ccc; border-radius: 8px;
  text-align: center; color: #666; font-size: 14px;
}

/* ── Price widget ────────────────────────────────────────────────── */
.landkit-price-wrapper { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.landkit-sale-badge {
  background: #e63946; color: #fff;
  padding: 4px 10px; border-radius: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
}
.landkit-regular-price { color: #999; text-decoration: line-through; font-size: .85em; }
.landkit-sale-price .amount { font-weight: 700; }

@keyframes landkit-btn-shine {
  0%, 25% { left: -35%; }
  70%, 100% { left: 120%; }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .landkit-offers { grid-template-columns: 1fr; }
  .landkit-field-row { grid-template-columns: 1fr; }
  .landkit-summary-total { font-size: 18px; }
  .landkit-checkout-btn { font-size: 16px; }
}

/* ── Piece color group (per-piece variation selector) ───────────────── */
.landkit-piece-color-group {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #f9f9f9;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
}
.landkit-piece-color-group .landkit-field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.landkit-piece-attr-row { margin-bottom: 10px; }

/* ── Bosta governorate / area selects ───────────────────────────────── */
.landkit-bosta-governorate,
.landkit-bosta-area {
  width: 100%;
  padding: 11px 14px;
  box-sizing: border-box;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #111;
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 36px;
}
.landkit-bosta-governorate:focus,
.landkit-bosta-area:focus {
  outline: none;
  border-color: #111;
}

/* ── Qty minus/plus explicit selectors ──────────────────────────────── */
.landkit-qty-minus,
.landkit-qty-plus {
  color: #333;
  flex-shrink: 0;
}

/* ── Hidden JSON inputs ──────────────────────────────────────────────── */
.landkit-piece-variations-json,
.landkit-piece-variation-ids-json,
.landkit-checkout-fields-json,
.landkit-required-fields-json {
  display: none !important;
}

/* ── Trust badge ─────────────────────────────────────────────────── */
.landkit-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  color: #666;
  padding: 10px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 14px;
  font-family: 'Cairo', inherit;
  direction: rtl;
}
.landkit-trust svg {
  color: #22c55e;
  flex-shrink: 0;
}

/* ── Offer buttons — full redesign ──────────────────────────────── */
.landkit-offers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.lk-offers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.landkit-offer-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: right;
  font-family: 'Cairo', inherit;
  direction: rtl;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  overflow: visible;
}
.lk-offer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: right;
  font-family: 'Cairo', inherit;
  direction: rtl;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.landkit-offer-btn:hover {
  border-color: #aaa;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.lk-offer:hover {
  border-color: #aaa;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.landkit-offer-btn.is-selected {
  border-color: #111;
  background: #fafafa;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.lk-offer.is-active,
.lk-offer.is-selected {
  border-color: #111;
  background: #fafafa;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.lk-offer:focus-visible {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}
.landkit-offer-btn strong {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  display: block;
}
.landkit-offer-btn > span {
  font-size: 20px;
  font-weight: 800;
  color: #111;
}
.landkit-offer-btn small.landkit-offer-note {
  font-size: 12px;
  color: #888;
  font-weight: 400;
  display: block;
  margin-top: 2px;
}
.landkit-offer-btn em.landkit-offer-save {
  position: absolute;
  top: -10px;
  left: 14px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
/* Radio dot indicator */
.landkit-offer-btn::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  order: -1;
  margin-left: 12px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.lk-offer-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  order: -1;
  margin-left: 12px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.lk-offer.is-active .lk-offer-radio,
.lk-offer.is-selected .lk-offer-radio {
  border-color: #111;
  background: #111;
  box-shadow: inset 0 0 0 3px #fff;
}
.lk-offer-label {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  display: block;
}
.lk-offer-price {
  font-size: 20px;
  font-weight: 800;
  color: #111;
}
.lk-offer-note {
  font-size: 12px;
  color: #888;
  font-weight: 400;
  display: block;
  margin-top: 2px;
}
.lk-offer-badge {
  position: absolute;
  top: -10px;
  left: 14px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.landkit-offer-btn.is-selected::before {
  border-color: #111;
  background: #111;
  box-shadow: inset 0 0 0 3px #fff;
}

/* ── Animations ──────────────────────────────────────────────────── */
@keyframes landkit-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
@keyframes landkit-fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes landkit-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.03); }
}

.landkit-input.is-invalid {
  animation: landkit-shake .35s ease;
  border-color: #ef4444 !important;
}
.landkit-checkout-message {
  animation: landkit-fadeIn .3s ease;
}
.landkit-checkout-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.landkit-checkout-btn:not(:disabled):active {
  transform: translateY(0);
  box-shadow: none;
}
.is-success { color: #16a34a; font-weight: 600; }
.is-error   { color: #ef4444; }
