/* DZ COD Order Form — works in LTR and RTL themes. */
.dzcod-form {
	--dzcod-primary: #16a34a;
	--dzcod-border: #d4d4d8;
	--dzcod-radius: 10px;
	box-sizing: border-box;
	margin: 1.25em 0;
	padding: 20px;
	border: 2px solid var(--dzcod-primary);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 24px -12px color-mix(in srgb, var(--dzcod-primary) 45%, transparent);
	color: #18181b;
	font-size: 15px;
	line-height: 1.4;
}
.dzcod-form *, .dzcod-form *::before, .dzcod-form *::after { box-sizing: border-box; }
.dzcod-title { margin: 0 0 14px; font-size: 1.15em; text-align: center; }
.dzcod-free-badge { margin: -6px 0 12px; padding: 6px 10px; border-radius: 20px; background: color-mix(in srgb, var(--dzcod-primary) 12%, #fff); color: var(--dzcod-primary); font-weight: 700; text-align: center; }
.dzcod-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .dzcod-row { grid-template-columns: 1fr; } }
.dzcod-field { margin: 0 0 12px; min-width: 0; }
.dzcod-field > label, .dzcod-field > legend { display: block; margin: 0 0 5px; font-weight: 600; font-size: .92em; }
.dzcod-field small { font-weight: 400; opacity: .7; }
.dzcod-form input[type="text"], .dzcod-form input[type="tel"], .dzcod-form input[type="email"], .dzcod-form input[type="number"], .dzcod-form select, .dzcod-form textarea {
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid var(--dzcod-border);
	border-radius: var(--dzcod-radius);
	background: #fff;
	color: inherit;
	font: inherit;
}
.dzcod-form textarea { min-height: 70px; resize: vertical; }
.dzcod-form input:focus, .dzcod-form select:focus, .dzcod-form textarea:focus { outline: 2px solid var(--dzcod-primary); outline-offset: 1px; border-color: var(--dzcod-primary); }
.dzcod-form .is-invalid { border-color: #dc2626 !important; background: #fef2f2 !important; }
.dzcod-form select:disabled { opacity: .6; }
.dzcod-delivery { border: 0; padding: 0; }
/* Delivery cards: match the supplied home / office reference. */
.dzcod-choices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 15px; }
.dzcod-choice { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; min-width: 0; min-height: 100px; margin: 0; padding: 14px 8px; border: 1px solid #e8e6eb; border-radius: 21px; background: #fff; color: #111; text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s; }
/* Keep native radio semantics and arrow-key selection, without visible circles. */
.dzcod-choice input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.dzcod-choice-icon { display: block; width: 28px; height: 28px; flex: 0 0 28px; background: center / contain no-repeat; }
.dzcod-choice-icon-home { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12 14 3l11 9v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z'/%3E%3Cpath d='M10 26V15h8v11'/%3E%3C/svg%3E"); }
.dzcod-choice-icon-desk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='18' height='24' rx='2'/%3E%3Cpath d='M11 26v-7h6v7M10 7h.01M15 7h.01M19 7h.01M10 12h.01M15 12h.01M19 12h.01'/%3E%3C/svg%3E"); }
.dzcod-choice > span:not(.dzcod-choice-icon) { font-size: 17px; font-weight: 400; line-height: 1.45; overflow-wrap: anywhere; }
.dzcod-choice:has(input:checked) { border-color: var(--dzcod-primary); background: color-mix(in srgb, var(--dzcod-primary) 10%, #fff); }
.dzcod-choice:has(input:focus-visible) { outline: 2px solid var(--dzcod-primary); outline-offset: 3px; }
/* Fees remain in the DOM for form.js and are shown in the order summary. */
.dzcod-choice .dzcod-price-home, .dzcod-choice .dzcod-price-desk { display: none; }
.dzcod-check { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.dzcod-check input { width: 18px; height: 18px; accent-color: var(--dzcod-primary); }
@media (max-width: 520px) { .dzcod-choices { gap: 8px; } .dzcod-choice { padding: 12px 6px; } .dzcod-choice > span:not(.dzcod-choice-icon) { font-size: 14px; } }
.dzcod-qty-box { display: inline-flex; align-items: stretch; }
.dzcod-qty-box input[type="number"] { width: 64px; text-align: center; border-radius: 0; -moz-appearance: textfield; }
.dzcod-qty-box input::-webkit-outer-spin-button, .dzcod-qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dzcod-qty-btn { width: 46px; min-height: 46px; padding: 0; border: 1px solid var(--dzcod-border); background: #f4f4f5; color: inherit; font-size: 20px; cursor: pointer; }
.dzcod-qty-btn:first-child { border-start-start-radius: var(--dzcod-radius); border-end-start-radius: var(--dzcod-radius); }
.dzcod-qty-btn:last-child { border-start-end-radius: var(--dzcod-radius); border-end-end-radius: var(--dzcod-radius); }
.dzcod-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.dzcod-summary { margin: 4px 0 12px; padding: 12px; border-radius: var(--dzcod-radius); background: #f4f4f5; }
.dzcod-summary > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.dzcod-sum-total-row { margin-top: 4px; padding-top: 8px !important; border-top: 1px dashed var(--dzcod-border); font-size: 1.1em; }
.dzcod-sum-total { color: var(--dzcod-primary); }
.dzcod-message:empty { display: none; }
.dzcod-message { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--dzcod-radius); }
.dzcod-message.is-error { background: #fef2f2; color: #991b1b; }
.dzcod-message.is-success { background: #f0fdf4; color: #166534; font-weight: 600; text-align: center; }
.dzcod-submit {
	display: block;
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: var(--dzcod-radius);
	background: var(--dzcod-primary);
	color: #fff;
	font: inherit;
	font-size: 1.1em;
	font-weight: 700;
	cursor: pointer;
	animation: dzcod-pulse 2.4s ease-in-out infinite;
}
.dzcod-submit:disabled { opacity: .7; cursor: wait; animation: none; }
@keyframes dzcod-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .dzcod-submit { animation: none; } }
.dzcod-privacy { margin: 4px 0 0; text-align: center; font-size: .75em; opacity: .6; }
.dzcod-trust { margin: 10px 0 0; text-align: center; font-size: .85em; opacity: .75; }
.dzcod-form.is-done > *:not(.dzcod-message):not(.dzcod-title):not(.dzcod-upsell) { display: none !important; }
.dzcod-form.is-done .dzcod-message.is-success { padding: 22px 14px; font-size: 1.05em; }

/* Quantity offers */
.dzcod-offers { border: 0; padding: 0; }
.dzcod-offer { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 13px 14px; border: 1.5px solid var(--dzcod-border); border-radius: var(--dzcod-radius); cursor: pointer; transition: border-color .15s, background-color .15s; }
.dzcod-offer.is-selected, .dzcod-offer:has(input:checked) { border-color: var(--dzcod-primary); background: color-mix(in srgb, var(--dzcod-primary) 8%, #fff); }
.dzcod-offer input { margin: 0; accent-color: var(--dzcod-primary); }
.dzcod-offer-main { display: flex; flex-direction: column; gap: 2px; }
.dzcod-offer-free { color: var(--dzcod-primary); font-weight: 600; }
.dzcod-offer-price { margin-inline-start: auto; display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.dzcod-offer-total { font-size: 1.05em; }
.dzcod-offer-was { font-size: .85em; opacity: .55; }
.dzcod-offer-badge { position: absolute; top: -9px; inset-inline-end: 12px; padding: 1px 8px; border-radius: 20px; background: var(--dzcod-primary); color: #fff; font-size: .75em; font-weight: 700; }

/* One-click upsell */
.dzcod-upsell { display: flex !important; gap: 12px; align-items: flex-start; margin: 0 0 12px; padding: 14px; border: 2px dashed var(--dzcod-primary); border-radius: var(--dzcod-radius); background: color-mix(in srgb, var(--dzcod-primary) 5%, #fff); }
.dzcod-upsell img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex: 0 0 72px; }
.dzcod-upsell > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.dzcod-upsell-price b { font-size: 1.15em; color: var(--dzcod-primary); }
.dzcod-upsell-price s { margin-inline-start: 8px; opacity: .55; }
.dzcod-upsell .dzcod-upsell-yes { margin-top: 6px; min-height: 46px; animation: none; }
.dzcod-upsell-no { margin-top: 4px; border: 0; background: none; color: inherit; opacity: .65; text-decoration: underline; cursor: pointer; font: inherit; }

/* Contact fields and location selectors, matching the supplied reference. */
.dzcod-contact-row { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.dzcod-contact-row .dzcod-field { position: relative; margin: 0; }
.dzcod-contact-row .dzcod-field > label, .dzcod-location-row .dzcod-field > label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.dzcod-contact-row .dzcod-field > input, .dzcod-location-row .dzcod-field > select { min-height: 64px; border: 1px solid #dce4ef; border-radius: 10px; background-color: #fff; box-shadow: 0 4px 9px -4px rgb(15 23 42 / 18%); font-size: 16px; }
.dzcod-contact-row .dzcod-field > input { padding: 12px 20px; padding-inline-start: 82px; }
.dzcod-contact-row .dzcod-field:dir(rtl) > input { padding-right: 82px; padding-left: 20px; text-align: right; }
.dzcod-contact-row input::placeholder { color: #94a7c1; opacity: 1; }
.dzcod-contact-row .dzcod-field::before { content: ''; position: absolute; z-index: 1; inset-inline-start: 1px; top: 1px; bottom: 1px; width: 64px; border-start-start-radius: 9px; border-end-start-radius: 9px; background: color-mix(in srgb, var(--dzcod-primary) 12%, #fff); pointer-events: none; }
.dzcod-contact-row .dzcod-field::after { content: ''; position: absolute; z-index: 2; inset-inline-start: 20px; top: 20px; width: 26px; height: 26px; background-color: var(--dzcod-primary); mask: var(--dzcod-contact-icon) center / contain no-repeat; -webkit-mask: var(--dzcod-contact-icon) center / contain no-repeat; pointer-events: none; }
.dzcod-f-name { --dzcod-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M5 21v-2a7 7 0 0 1 14 0v2c-4 2-10 2-14 0Z'/%3E%3C/svg%3E"); }
.dzcod-f-phone { --dzcod-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3 4 4C-2 10 14 26 20 20l1-3-5-3-2 2a15 15 0 0 1-6-6l2-2Z'/%3E%3C/svg%3E"); }
.dzcod-location-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.dzcod-location-row .dzcod-field > select { appearance: none; -webkit-appearance: none; padding: 12px 16px; padding-inline-end: 38px; color: #596579; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2394a7c1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E"); background-size: 16px; background-repeat: no-repeat; background-position: right 12px center; }
.dzcod-location-row .dzcod-field:dir(rtl) > select { background-position: left 12px center; }
@media (max-width: 520px) { .dzcod-location-row { gap: 12px; } .dzcod-location-row .dzcod-field > select { font-size: 14px; padding-inline-start: 10px; } }
