/* Checkout and order confirmation; builds on the cart page tokens in printer-buzz-cart.css. */
.co-page :where(fieldset){margin:0;padding:0;border:0;min-width:0}
.co-page :where(select,textarea){font:inherit;color:inherit}

/* Heading and progress */
.co-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding-block:42px 30px}
.co-head h1{font-size:clamp(34px,3.5vw,50px);letter-spacing:-.035em;line-height:1.08;outline:0}
.co-steps{display:flex;align-items:center;gap:10px;margin:0;padding:0;list-style:none;font-size:14.5px;font-weight:600;color:#7a8b88}
.co-steps li{display:flex;align-items:center;gap:9px}
.co-steps li+li::before{content:"";width:34px;height:2px;border-radius:2px;background:#d7e3df;margin-right:2px}
.co-steps li.is-done+li::before{background:var(--ct-teal)}
.co-steps a{display:flex;align-items:center;gap:9px;color:var(--ct-teal)}
.co-steps a:hover{text-decoration:underline;text-underline-offset:3px}
.co-step-dot{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:2px solid #d0dcd8;background:#fff;font-family:var(--ct-display);font-size:13.5px;font-weight:800}
.co-page .co-step-dot .pb-icon{width:15px;height:15px;stroke-width:2.6}
.co-steps .is-done .co-step-dot{border-color:var(--ct-teal);background:var(--ct-teal);color:#fff}
.co-steps .is-current{color:#0a2530}
.co-steps .is-current .co-step-dot{border-color:var(--ct-coral);background:var(--ct-coral);color:#fff;box-shadow:0 0 0 4px #ff604b24}

/* Messages */
.co-alert{display:flex;align-items:flex-start;gap:12px;padding:15px 18px;margin-bottom:24px;border:1px solid #ffd2c6;border-radius:12px;background:#fff5f1;color:#6b2a1d;font-size:15.5px;font-weight:500;line-height:1.5}
.co-page .co-alert .pb-icon{width:22px;height:22px;color:var(--ct-coral-text);margin-top:1px}
.co-loading{padding:48px 0 80px;color:var(--ct-muted);font-size:17px}
.co-summary-errors{padding:18px 22px;margin-bottom:22px;border:1px solid #ffc4b5;border-left:5px solid var(--ct-coral);border-radius:12px;background:#fff6f3;outline:0}
.co-summary-errors:focus-visible{box-shadow:0 0 0 3px #ef8d4566}
.co-page .co-summary-errors h2{display:flex;align-items:center;gap:9px;font-size:17px;letter-spacing:-.01em;color:#6b2a1d}
.co-page .co-summary-errors h2 .pb-icon{width:21px;height:21px;color:var(--ct-coral-text)}
.co-summary-errors ul{display:grid;gap:5px;margin-top:10px!important;padding-left:30px!important;list-style:disc!important;color:#8c3a29}
.co-summary-errors a{font-size:15px;font-weight:500;color:#8c3a29!important;text-decoration:underline!important;text-underline-offset:3px}

/* Layout and cards */
.co-layout{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:28px;align-items:start;padding-bottom:64px}
.co-main{display:grid;gap:20px;min-width:0}
.co-card{padding:28px 30px 30px;border:1px solid var(--ct-line);border-radius:18px;background:#fff;box-shadow:0 1px 2px #003d4308}
.co-page .co-card h2{display:flex;align-items:center;gap:13px;font-size:22px;margin-bottom:22px}
.co-num{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--ct-mint);color:var(--ct-teal);font-size:15.5px;flex-shrink:0}
.co-optional{font-family:'PB Inter',Inter,Arial,sans-serif;font-size:14px;font-weight:500;letter-spacing:0;color:#7a8b88}
.co-country{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin:-6px 0 22px!important;padding:12px 16px;border-radius:12px;background:var(--ct-mint);font-size:15px;color:#1d4442}
.co-page .co-country .pb-icon{width:19px;height:19px;color:var(--ct-teal)}
.co-country span{color:var(--ct-muted);font-size:14px}

/* Fields */
.co-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 18px}
.co-span-2{grid-column:span 2}
.co-field{display:grid;gap:7px;align-content:start;min-width:0}
.co-field label{font-size:15px;font-weight:600;color:#1f3a3f}
.co-field input,.co-field select,.co-field textarea{width:100%;min-height:52px;padding:12px 16px;border:1px solid #c9d7d3;border-radius:12px;background:#fff;font-size:16px;line-height:1.4;transition:border-color .15s,box-shadow .15s;outline:0}
.co-field textarea{min-height:100px;resize:vertical}
.co-field ::placeholder{color:#8a9b98;opacity:1}
.co-field input:hover,.co-field select:hover,.co-field textarea:hover{border-color:#9db8b1}
.co-field input:focus,.co-field select:focus,.co-field textarea:focus{border-color:var(--ct-teal);box-shadow:0 0 0 4px #00565c1f}
.co-page .co-field :focus-visible{outline:0}
.co-field.has-error input,.co-field.has-error select,.co-field.has-error textarea{border-color:#d4513b;background:#fffaf8}
.co-field.has-error input:focus,.co-field.has-error select:focus{box-shadow:0 0 0 4px #d4513b26}
.co-select{position:relative}
.co-select select{appearance:none;-webkit-appearance:none;padding-right:44px;cursor:pointer}
.co-page .co-select .pb-icon{position:absolute;right:15px;top:50%;width:18px;height:18px;transform:translateY(-50%);pointer-events:none;color:var(--ct-muted)}
.co-hint{font-size:13.5px;line-height:1.45;color:var(--ct-muted)}
.co-count{text-align:right}
.co-error{font-size:14px;font-weight:500;line-height:1.45;color:#b8402b}
.co-error:empty{display:none}
.co-error:not(:empty)::before{content:"! ";display:inline-grid;place-items:center;width:17px;height:17px;margin-right:6px;border-radius:50%;background:#d4513b;color:#fff;font-size:11px;font-weight:800;vertical-align:1px}
.co-free-note{margin-top:14px!important}

/* Radio option cards */
.co-options{display:grid;gap:12px}
.co-option{position:relative;display:flex;align-items:center;gap:15px;min-height:76px;padding:16px 20px;border:1.5px solid #d6e2de;border-radius:14px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.co-option:hover{border-color:#9db8b1}
.co-option input{position:absolute;opacity:0;width:1px;height:1px}
.co-option-mark{width:22px;height:22px;border:2px solid #b5c7c2;border-radius:50%;flex-shrink:0;background:#fff;transition:border .15s}
.co-option:has(input:checked){border-color:var(--ct-teal);background:#f6fbf9;box-shadow:0 0 0 3px #00565c14}
.co-option:has(input:checked) .co-option-mark{border:7px solid var(--ct-teal)}
.co-option:has(input:focus-visible){outline:3px solid #ef8d45;outline-offset:3px}
.co-option:has(input[aria-invalid="true"]){border-color:#d4513b}
.co-option.is-disabled{cursor:not-allowed;opacity:.6;background:#f7f9f8}
.co-option-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:var(--ct-mint);color:var(--ct-teal);flex-shrink:0}
.co-page .co-option-icon .pb-icon{width:24px;height:24px}
.co-option-text{display:grid;gap:2px;flex:1;min-width:0}
.co-option-text strong{font-family:var(--ct-display);font-size:16.5px;font-weight:800;color:#0a2530}
.co-option-text span{font-size:14.5px;color:var(--ct-muted);line-height:1.45}
.co-option-price{font-family:var(--ct-display);font-variant-numeric:tabular-nums;font-size:17px;font-weight:800;white-space:nowrap}
.co-option-price.is-free{color:#2e7d4f}
.co-paypal-logo{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#f2f6fc;font-family:Verdana,Arial,sans-serif;font-size:11.5px;font-weight:700;letter-spacing:-.02em;flex-shrink:0}
.co-paypal-logo b{color:#003087}
.co-paypal-logo i{color:#009cde;font-style:italic;margin-top:-6px}
.co-pay-note{display:flex;align-items:flex-start;gap:12px;margin-top:14px;padding:15px 18px;border-radius:12px;background:var(--ct-mint);animation:ct-in .2s ease-out}
.co-page .co-pay-note .pb-icon{width:21px;height:21px;color:var(--ct-teal);margin-top:2px}
.co-pay-note p{font-size:14.5px;line-height:1.55;color:#1d4442}

/* Order summary */
.co-summary{top:20px}
.co-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.co-edit{display:inline-flex;align-items:center;gap:6px;font-size:14.5px;font-weight:600;color:var(--ct-coral-text)!important}
.co-edit:hover{text-decoration:underline;text-underline-offset:3px}
.co-page .co-edit .pb-icon{width:16px;height:16px}
.co-items{display:grid;gap:16px;margin-top:12px!important;padding:10px 10px 20px 0!important;border-bottom:1px solid var(--ct-line);max-height:340px;overflow-y:auto}
.co-item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:14px;align-items:center}
.co-item-thumb{position:relative;display:grid;place-items:center;width:64px;height:64px;padding:6px;border:1px solid #e6eeeb;border-radius:12px;background:#fff}
.co-item-thumb img{width:100%;height:100%;object-fit:contain}
.co-item-qty{position:absolute;top:-8px;right:-8px;display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:var(--ct-teal);color:#fff;font-size:12px;font-weight:700;box-shadow:0 0 0 2px #fff}
.co-item-info{display:grid;gap:3px;min-width:0}
.co-item-info a{font-size:14.5px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.co-item-info a:hover{color:var(--ct-teal);text-decoration:underline}
.co-item-info span{font-size:13.5px;color:var(--ct-muted)}
.co-item-price{font-family:var(--ct-display);font-variant-numeric:tabular-nums;font-size:15.5px;font-weight:800}
.co-item.is-unavailable{opacity:.65}
.co-item.is-unavailable .co-item-info span{color:#b8402b;font-weight:600}
.co-unavailable{display:flex;gap:10px;margin-top:16px;padding:12px 14px;border-radius:12px;background:#fff5f1;border:1px solid #ffd2c6}
.co-page .co-unavailable .pb-icon{width:19px;height:19px;color:var(--ct-coral-text);margin-top:2px}
.co-unavailable p{font-size:14px;line-height:1.5;color:#6b2a1d}
.co-grand small{font-family:'PB Inter',Inter,Arial,sans-serif;font-size:12.5px;font-weight:600;color:var(--ct-muted);letter-spacing:.05em}

/* Terms and submit */
.co-terms{margin-top:18px}
.co-check{display:flex;align-items:flex-start;gap:12px;font-size:14.5px;line-height:1.5;color:#33494f;cursor:pointer}
.co-check input{position:absolute;opacity:0;width:1px;height:1px}
.co-check-box{display:grid;place-items:center;width:22px;height:22px;margin-top:1px;border:2px solid #a9bcb7;border-radius:6px;background:#fff;color:#fff;flex-shrink:0;transition:background .15s,border-color .15s}
.co-page .co-check-box .pb-icon{width:14px;height:14px;stroke-width:3;opacity:0}
.co-check input:checked+.co-check-box{background:var(--ct-teal);border-color:var(--ct-teal)}
.co-check input:checked+.co-check-box .pb-icon{opacity:1}
.co-check input:focus-visible+.co-check-box{outline:3px solid #ef8d45;outline-offset:2px}
.co-check input[aria-invalid="true"]+.co-check-box{border-color:#d4513b}
.co-check a{color:var(--ct-teal)!important;font-weight:600;text-decoration:underline!important;text-underline-offset:3px}
.co-terms .co-error{margin-top:8px!important}
.co-form-error{margin-top:14px!important}
.co-page .co-submit{position:relative;margin-top:18px}
.co-page .co-submit.is-paypal{background:linear-gradient(110deg,#ff614b,#ff624c)}
.co-page .co-submit.is-busy{cursor:progress;opacity:.85;transform:none}
.co-spinner{display:none;width:19px;height:19px;border:2.5px solid #ffffff66;border-top-color:#fff;border-radius:50%;animation:co-spin .7s linear infinite}
.co-submit.is-busy .co-spinner{display:block}
.co-submit.is-busy .pb-icon{display:none}
.co-secure{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:12px!important;font-size:13.5px;color:var(--ct-muted)}
.co-page .co-secure .pb-icon{width:15px;height:15px}
@keyframes co-spin{to{transform:rotate(360deg)}}

/* Confirmation */
.co-confirm{padding-block:48px 64px}
.co-confirm-hero{display:grid;justify-items:center;text-align:center;gap:14px;padding:46px 28px 40px;border-radius:22px;background:linear-gradient(180deg,#f0f7f4,#fff);border:1px solid var(--ct-line)}
.co-confirm-badge{display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:var(--ct-teal);color:#fff;box-shadow:0 0 0 10px #00565c1a;animation:ct-in .35s ease-out}
.co-page .co-confirm-badge .pb-icon{width:40px;height:40px;stroke-width:2.4}
.co-confirm-hero.is-pending .co-confirm-badge{background:#c97a1c;box-shadow:0 0 0 10px #c97a1c1f}
.co-page .co-confirm-hero h1{font-size:clamp(30px,3.4vw,44px);margin-top:10px;outline:0}
.co-confirm-hero>p{max-width:600px;font-size:17px;color:var(--ct-muted)}
.co-order-no{display:inline-flex;align-items:center;gap:10px;padding:9px 18px;border-radius:999px;background:#fff;border:1px dashed #9db8b1;font-size:15px;color:var(--ct-muted)}
.co-order-no strong{font-family:var(--ct-display);font-size:17px;letter-spacing:.03em;color:#0a2530}
.co-confirm-grid{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:28px;align-items:start;margin-top:28px}
.co-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.co-page .co-detail h3{display:flex;align-items:center;gap:9px;font-size:15px;letter-spacing:.06em;text-transform:uppercase;color:#477773;margin-bottom:8px}
.co-page .co-detail h3 .pb-icon{width:19px;height:19px}
.co-detail p{font-size:15.5px;line-height:1.6;color:#1f3a3f}
.co-status{display:inline-flex;align-items:center;gap:7px;margin-top:6px!important;padding:4px 12px;border-radius:999px;font-size:13.5px!important;font-weight:700;background:#e6f4ec;color:#22693f!important}
.co-status.is-pending{background:#fdf1e1;color:#8a5212!important}
.co-next{display:grid;gap:14px;counter-reset:next}
.co-next li{display:flex;gap:14px;font-size:15.5px;line-height:1.55;color:#33494f}
.co-next li::before{counter-increment:next;content:counter(next);display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ct-mint);color:var(--ct-teal);font-family:var(--ct-display);font-weight:800;font-size:13.5px;flex-shrink:0}
.co-confirm-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.co-page .co-confirm-actions .ct-button{width:auto;margin-top:0;padding-inline:30px}
.co-outline{display:inline-flex;align-items:center;gap:8px;min-height:56px;padding:12px 26px;border:1.5px solid #c9d7d3;border-radius:999px;font-family:var(--ct-display);font-weight:800;font-size:15.5px;transition:border-color .15s,color .15s}
.co-outline:hover{border-color:var(--ct-teal);color:var(--ct-teal)!important}
.co-confirm .co-items{max-height:none}
.co-item.co-item-text{grid-template-columns:minmax(0,1fr) auto}
.co-item-info strong{font-size:14.5px;font-weight:600;line-height:1.35}
.co-detail-notes{margin-top:20px}

@media(max-width:1150px){
.co-layout,.co-confirm-grid{grid-template-columns:minmax(0,1fr) 350px;gap:22px}
.co-card{padding:24px}
}
@media(max-width:960px){
.co-layout,.co-confirm-grid{grid-template-columns:1fr}
.co-summary{position:static}
.co-head{flex-direction:column;align-items:flex-start}
}
@media(max-width:760px){
.co-head{padding-block:28px 22px;gap:18px}
.co-steps{font-size:13px;gap:6px}
.co-steps li+li::before{width:16px}
.co-card{padding:22px 18px;border-radius:16px}
.co-page .co-card h2{font-size:20px;margin-bottom:18px}
.co-grid,.co-detail-grid{grid-template-columns:1fr;gap:16px}
.co-span-2{grid-column:auto}
.co-option{padding:14px 15px;gap:12px}
.co-option-icon,.co-paypal-logo{width:40px;height:40px}
.co-confirm{padding-block:28px 48px}
.co-confirm-hero{padding:36px 18px 32px}
}
@media(max-width:420px){
.co-steps li:not(.is-current) a,.co-steps li:not(.is-current){font-size:0;gap:0}
.co-steps li+li::before{margin-right:6px}
.co-option{flex-wrap:wrap}
.co-option-price{margin-left:37px}
.co-option-icon,.co-paypal-logo{display:none}
.co-page .co-confirm-actions .ct-button,.co-outline{width:100%;justify-content:center}
}
@media(prefers-reduced-motion:reduce){.co-spinner{animation-duration:2s}}
