/* JN Order Summary widgets — shared base styles. Elementor's per-widget
   Style controls override colors/spacing via inline selectors; these are
   sensible fallback defaults matching the site's established look. */

.jnw-order-summary {
	width: 100%;
	box-sizing: border-box;
	background: #FFFFFF;
	border: 1px solid #E5D9CC;
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 20px;
}
.jnw-os-heading {
	font-size: 22px;
	font-weight: 600;
	padding: 22px 26px 14px;
}
.jnw-os-subheading {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #9A8070;
	margin: 18px 26px 10px;
}

/* Product rows */
.jnw-os-items { border-top: 1px solid #E5D9CC; }
.jnw-os-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 16px 26px;
	border-bottom: 1px solid #E5D9CC;
}
.jnw-os-item-thumb { width: 48px; height: 48px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.jnw-os-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jnw-os-item-body { flex: 1; min-width: 0; }
.jnw-os-item-name { font-size: 14px; font-weight: 600; }
.jnw-os-item-name a { color: inherit; text-decoration: none; }
.jnw-os-item-qty { font-weight: 400; color: #9A8070; margin-left: 4px; }
.jnw-os-item-meta { font-size: 12px; color: #9A8070; margin-top: 4px; }
.jnw-os-item-total { font-size: 14px; font-weight: 700; white-space: nowrap; }
.jnw-os-items .jnw-os-item:last-child { border-bottom: none; }

/* Delivery Zone cards */
.jnw-os-zone-section { padding: 0 26px; }
.jnw-os-zone-list { display: flex; gap: 10px; flex-wrap: wrap; }
.jnw-os-zone-card {
	flex: 1 1 140px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	border: 1.5px solid #E5D9CC;
	border-radius: 10px;
	padding: 12px 14px;
	cursor: pointer;
	background: #FFFFFF;
	transition: border-color .15s, background-color .15s;
	position: relative;
}
.jnw-os-zone-card.is-selected { border-color: #CF753F; background: #FBEEE4; }
.jnw-os-zone-radio { position: absolute; opacity: 0; pointer-events: none; }
.jnw-os-zone-name { font-size: 13px; font-weight: 600; }
.jnw-os-zone-price { font-size: 13px; font-weight: 700; }
.jnw-os-zone-note { font-size: 11px; color: #9A8070; }

/* Totals */
.jnw-os-totals { padding: 16px 26px; }
.jnw-os-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 8px 0; }
.jnw-os-row--total { border-top: 1px solid #E5D9CC; margin-top: 6px; padding-top: 14px; font-size: 16px; font-weight: 700; }
.jnw-os-shipping-note { font-size: 12px; padding: 4px 0 8px; }

/* Coupon */
.jnw-os-coupon {
	display: flex;
	gap: 10px;
	padding: 16px 26px;
	border-top: 1px solid #E5D9CC;
}
.jnw-os-coupon input[type="text"] {
	flex: 1;
	border: 1px solid #E5D9CC;
	border-radius: 8px;
	padding: 11px 14px;
	font-size: 13.5px;
}

/* Checkout button (Cart Summary only) */
.jnw-os-checkout-btn {
	display: block;
	text-align: center;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	position: relative;
	z-index: 1;
}

/* Order Info (Thank You) */
.jnw-os-greeting { font-size: 32px; font-weight: 500; margin-bottom: 14px; }
.jnw-os-meta-row { display: inline-flex; gap: 6px; font-size: 13px; margin: 0 24px 12px 0; }
.jnw-os-meta-label { color: #9A8070; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; align-self: center; }
.jnw-os-meta-value { font-weight: 700; }

.jnw-os-addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 22px 0; }
.jnw-os-addr-grid--single { grid-template-columns: 1fr; max-width: 320px; }
.jnw-os-addr-k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #9A8070; margin-bottom: 8px; }
.jnw-os-addr-v { font-size: 13.5px; line-height: 1.7; }
.jnw-os-addr-line { margin-bottom: 4px; }
.jnw-os-addr-label { font-weight: 600; }
.jnw-os-addr-val { color: inherit; }
@media (max-width: 600px) {
	.jnw-os-addr-grid { grid-template-columns: 1fr; }
	/* FIX: on narrow screens the layout stacks to one column and every
	   other card goes full-width — this 320px cap (meant for a desktop
	   sidebar) made the address section alone stay narrow, floating in
	   the middle of the page instead of matching everything else. */
	.jnw-os-addr-grid--single { max-width: none; }
}

.jnw-os-address-box {
	width: 100%;
	box-sizing: border-box;
}

/* Payment Journey */
.jnw-os-journey-card {
	width: 100%;
	box-sizing: border-box;
	background: #FFFFFF;
	border: 1.5px solid #C9A84C;
	border-radius: 14px;
	padding: 24px 26px;
	margin-top: 20px;
}
.jnw-os-journey-sub { font-size: 12.5px; color: #9A8070; margin: 4px 0 18px; }
.jnw-os-bar { height: 5px; border-radius: 99px; background: #F2EBE2; overflow: hidden; margin-bottom: 18px; }
.jnw-os-bar-fill { height: 100%; background: #C9A84C; }
.jnw-os-journey-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid #E5D9CC; }
.jnw-os-journey-row:first-of-type { border-top: none; }
.jnw-os-journey-label { font-size: 13.5px; font-weight: 600; }
.jnw-os-journey-paid { font-size: 11px; font-weight: 700; color: #C9A84C; margin-top: 2px; }
.jnw-os-journey-due { font-size: 11px; color: #9A8070; margin-top: 2px; }
.jnw-os-journey-amount { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.jnw-os-pay-btn {
	background: #CF753F;
	color: #fff;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
/* Card already has its own padding — the shared .jnw-os-heading padding
   (meant for the Thank You Details/Summary boxes further down the page)
   would double up here, pushing "Payment Journey" further right than the
   rest of the card's content. */
.jnw-os-journey-card > .jnw-os-heading { padding: 0 0 4px; }

@media (max-width: 600px) {
	.jnw-os-journey-row { flex-wrap: wrap; row-gap: 10px; }
	.jnw-os-journey-amount { width: 100%; justify-content: space-between; }
}

/* Hero widget meta row */
.jnw-os-meta-wrap { display: flex; flex-wrap: wrap; gap: 0; margin-top: 4px; }

/* Standalone Delivery Zone widget wrapper */
.jnw-delivery-zone { width: 100%; box-sizing: border-box; margin-bottom: 20px; }
.jnw-delivery-zone .jnw-os-subheading { margin-left: 0; margin-right: 0; }
.jnw-delivery-zone .jnw-os-zone-section,
.jnw-delivery-zone .jnw-os-zone-list { padding: 0; }

/* Standalone Coupon widget */
.jnw-coupon-wrap {
	width: 100%;
	box-sizing: border-box;
	background: #FBEEE4;
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 20px;
}
.jnw-coupon-toggle {
	display: block;
	background-color: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer;
	width: 100%;
	text-align: left;
	font-family: inherit;
	box-shadow: none !important;
	outline: none;
}
.jnw-coupon-toggle:focus {
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	outline: none;
}
.jnw-coupon-toggle-inner {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 8px;
	width: 100%;
	min-width: 0;
}
.jnw-coupon-icon { color: #CF753F; font-size: 16px; flex-shrink: 0; }
.jnw-coupon-prompt { font-size: 13.5px; color: #231810; min-width: 0; }
.jnw-coupon-link { overflow-wrap: anywhere; min-width: 0; }
.jnw-coupon-link { font-size: 13.5px; color: #CF753F; font-weight: 600; text-decoration: underline; }
.jnw-coupon-panel { margin-top: 14px; }
.jnw-coupon-panel[hidden] { display: none; }

.jnw-os-coupon-inner {
	display: flex;
	/* flex-direction intentionally left unset here — the Elementor "Input +
	   Button Layout" control owns this property via its own {{WRAPPER}}
	   rule (default value 'row' already matches this widget's original
	   look, so nothing changes for anyone who hasn't touched the control).
	   Declaring it here too was fighting that control's output. */
	gap: 10px;
}
.jnw-os-coupon-inner input[type="text"] {
	flex: 1;
	min-width: 0;
	font-size: 13.5px;
}
.jnw-os-coupon-btn {
	border: none;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
@media (max-width: 480px) {
	.jnw-os-coupon-inner { flex-direction: column; }
}

.jnw-os-coupon-error {
	color: #C0392B;
	font-size: 12.5px;
	margin-top: 8px;
}

.jnw-os-applied-coupons { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.jnw-os-applied-coupon {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	font-size: 12.5px;
}
.jnw-os-applied-coupon-code { font-weight: 700; letter-spacing: .03em; }
.jnw-os-applied-coupon-amount { font-weight: 600; }
.jnw-os-applied-coupon-remove {
	margin-left: auto;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 0 4px;
}
