/* Restyle existing EDD markup; no form reparenting, gateway replacements or hidden fields. */
@font-face{font-family:'TBC Checkout Condensed';src:url('assets/BebasNeue-Regular.ttf') format('truetype');font-display:swap;}
body.tbc-checkout-design{background:#080808!important;color:#eee;}
.tbc-checkout-page{max-width:1280px;margin:24px auto 40px;padding:0 22px;box-sizing:border-box;font-family:Arial,Helvetica,sans-serif;color:#fff;}
.tbc-checkout-page *{box-sizing:border-box;}
.tbc-checkout-hero{text-align:center;padding:38px 20px;min-height:215px;border-bottom:1px solid #D4AF37;background:linear-gradient(90deg,#08080860,#08080840,#08080830),url('assets/contact-hero-reference.png') center/cover;}
.tbc-checkout-hero h1{font:800 clamp(34px,5vw,58px)/1.1 Arial,sans-serif!important;color:#fff!important;margin:10px 0 14px!important;letter-spacing:-.5px!important;}
.tbc-checkout-hero h1 span{color:#F5CC59;}
.tbc-checkout-hero>p{font:14px/1.7 Arial,sans-serif!important;color:#eee!important;margin:0!important;}
.tbc-checkout-hero>p:first-child{font-size:11px!important;letter-spacing:2px;color:#F5CC59!important;}
.tbc-checkout-native{margin:28px 0 0;}
body.tbc-checkout-design #edd_checkout_wrap{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:26px;align-items:start;}
body.tbc-checkout-design #edd_checkout_cart_form{grid-column:2;grid-row:1;min-width:0;}
body.tbc-checkout-design #edd_checkout_form_wrap{grid-column:1;grid-row:1;min-width:0;}
body.tbc-checkout-design #edd_checkout_cart_form,body.tbc-checkout-design #edd_checkout_form_wrap{padding:24px;border:1px solid #D4AF37;border-radius:9px;background:linear-gradient(130deg,#17140e,#080808 60%);box-shadow:0 0 8px #d4af3724;}
body.tbc-checkout-design .tbc-checkout-panel-heading{font:700 23px/1.25 Arial,sans-serif!important;color:#fff!important;margin:0 0 22px!important;}
body.tbc-checkout-design #edd_checkout_cart{width:100%!important;background:transparent!important;border-collapse:collapse;}
body.tbc-checkout-design #edd_checkout_cart th,body.tbc-checkout-design #edd_checkout_cart td{background:transparent!important;border-color:#665025!important;color:#eee!important;padding:12px 8px!important;font:13px/1.6 Arial,sans-serif!important;}
body.tbc-checkout-design #edd_checkout_cart th{color:#F5CC59!important;font-size:11px!important;}
body.tbc-checkout-design #edd_checkout_cart .edd_cart_item_image img{border:1px solid #806526;border-radius:4px;width:66px;max-width:100%;height:auto;}
body.tbc-checkout-design #edd_checkout_cart .edd_cart_total td{font-size:20px!important;font-weight:700!important;color:#F5CC59!important;}
body.tbc-checkout-design #edd_purchase_form{background:transparent;}
body.tbc-checkout-design #edd_purchase_form fieldset{border:0!important;background:transparent!important;padding:0!important;margin:0 0 24px!important;min-width:0;}
body.tbc-checkout-design #edd_purchase_form legend{font:700 16px/1.5 Arial,sans-serif!important;color:#F5CC59!important;padding:0 0 12px!important;}
body.tbc-checkout-design #edd_purchase_form label{color:#eee!important;font:13px/1.6 Arial,sans-serif!important;}
body.tbc-checkout-design #edd_purchase_form input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]),body.tbc-checkout-design #edd_purchase_form select,body.tbc-checkout-design #edd_purchase_form textarea,body.tbc-checkout-design #edd_checkout_cart input[type=number]{background:#111!important;color:#fff!important;border:1px solid #806727!important;border-radius:4px!important;min-height:44px;font:16px/1.5 Arial,sans-serif!important;padding:10px 12px!important;max-width:100%;}
body.tbc-checkout-design #edd_purchase_form select option{background:#111;color:#fff;}
body.tbc-checkout-design #edd_purchase_form .edd-description{color:#bbb!important;font-size:12px!important;}
body.tbc-checkout-design #edd_checkout_form_wrap a,body.tbc-checkout-design #edd_checkout_cart a{color:#F5CC59!important;}
body.tbc-checkout-design #edd_checkout_form_wrap .edd_errors{background:#211410;color:#ffbfb3;border:1px solid #b75e48;padding:14px;}
body.tbc-checkout-design #edd-payment-mode-wrap{border-top:1px solid #a47d29!important;padding-top:20px!important;}
body.tbc-checkout-design #edd-gateway-option-credit-card,body.tbc-checkout-design .edd-gateway-option{border-color:#806727;}
body.tbc-checkout-design #edd_purchase_form input[type=radio],body.tbc-checkout-design #edd_purchase_form input[type=checkbox]{accent-color:#D4AF37;}
body.tbc-checkout-design #edd-purchase-button,.tbc-checkout-button{border:1px solid #ffe59a!important;border-radius:5px!important;background:linear-gradient(#ffe496,#d4a02d)!important;color:#080808!important;min-height:48px;padding:12px 24px!important;font:700 13px/1.5 Arial,sans-serif!important;text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center;}
body.tbc-checkout-design #edd-purchase-button{width:100%;cursor:pointer;}
body.tbc-checkout-design #edd_final_total_wrap{border-top:1px solid #806727;padding-top:16px;color:#fff;}
body.tbc-checkout-design #edd_final_total_wrap .edd_cart_amount{color:#F5CC59;font-weight:700;}
.tbc-checkout-delivery{border:1px solid #D4AF37;padding:18px;margin:22px 0 0;border-radius:6px;background:linear-gradient(130deg,#29200e,#080808);}
.tbc-checkout-delivery h3{font:700 16px/1.3 Arial,sans-serif!important;color:#fff!important;margin:0 0 9px!important;}
.tbc-checkout-delivery p{font:12px/1.8 Arial,sans-serif!important;color:#ccc!important;margin:0!important;}
body.tbc-checkout-design #edd_checkout_wrap>.edd_empty_cart{grid-column:1/-1;display:block;}
.tbc-checkout-empty{border:1px solid #D4AF37;border-radius:9px;text-align:center;padding:55px 22px;background:linear-gradient(#08080888,#080808b0),url('assets/contact-hero-reference.png') center/cover;}
.tbc-checkout-empty h2{font:700 clamp(25px,3vw,36px)/1.2 Arial,sans-serif!important;color:#fff!important;margin:0 0 14px!important;}
.tbc-checkout-empty p{font:14px/1.8 Arial,sans-serif!important;color:#ddd!important;margin:0 0 24px!important;}
.tbc-checkout-empty>div{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;}
.tbc-checkout-outline{background:#080808aa!important;color:#F5CC59!important;}
body.tbc-checkout-design #edd_purchase_form input:focus-visible,body.tbc-checkout-design #edd_purchase_form select:focus-visible,body.tbc-checkout-design .tbc-checkout-button:focus-visible{outline:2px solid #F5CC59;outline-offset:3px;}
@media(max-width:800px){.tbc-checkout-page{padding:0 12px;}body.tbc-checkout-design #edd_checkout_wrap{grid-template-columns:1fr;gap:22px;}body.tbc-checkout-design #edd_checkout_cart_form{grid-column:1;grid-row:auto;}body.tbc-checkout-design #edd_checkout_form_wrap{grid-column:1;grid-row:auto;}body.tbc-checkout-design #edd_checkout_cart_form,body.tbc-checkout-design #edd_checkout_form_wrap{padding:20px 15px;}.tbc-checkout-hero{padding:34px 16px;}.tbc-checkout-empty{padding:36px 16px;}}

/* Support the existing EDD Checkout block as well as the legacy shortcode. */
body.tbc-checkout-design #edd_checkout_form_wrap.wp-block-edd-checkout{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)!important;gap:26px!important;align-items:start!important;border:0!important;padding:0!important;box-shadow:none!important;background:transparent!important;}
body.tbc-checkout-design #edd_checkout_form_wrap.wp-block-edd-checkout>.edd-blocks__cart{grid-column:2!important;grid-row:1/span 4!important;border:1px solid #D4AF37;border-radius:9px;padding:24px;background:linear-gradient(130deg,#17140e,#080808 60%);min-width:0;}
body.tbc-checkout-design #edd_checkout_form_wrap.wp-block-edd-checkout>#edd_purchase_form{grid-column:1!important;border:1px solid #D4AF37;border-radius:9px;padding:24px;background:linear-gradient(130deg,#17140e,#080808 60%);min-width:0;}
body.tbc-checkout-design #edd_checkout_form_wrap.wp-block-edd-checkout>*:not(.edd-blocks__cart){grid-column:1!important;}
body.tbc-checkout-design .edd-blocks__cart table{width:100%;background:transparent;color:#eee;border-collapse:collapse;}
body.tbc-checkout-design .edd-blocks__cart th,body.tbc-checkout-design .edd-blocks__cart td{background:transparent!important;border-color:#665025!important;color:#eee!important;padding:12px 8px!important;font:13px/1.6 Arial,sans-serif!important;}
body.tbc-checkout-design .edd-blocks__cart a{color:#F5CC59!important;}
body.tbc-checkout-design .edd-blocks__cart img{max-width:70px;height:auto;border-radius:4px;}
body.tbc-checkout-design .edd-blocks__cart .edd-blocks-cart__total{color:#F5CC59!important;font-weight:bold;}
body.tbc-checkout-design .edd_empty_cart{display:block;}
@media(max-width:800px){body.tbc-checkout-design #edd_checkout_form_wrap.wp-block-edd-checkout{grid-template-columns:1fr!important;}body.tbc-checkout-design #edd_checkout_form_wrap.wp-block-edd-checkout>.edd-blocks__cart{grid-column:1!important;grid-row:auto!important;}}

/* Reference graphics: gold line icons, warmer panels and native payment-section treatment. */
body.tbc-checkout-design .tbc-checkout-icon{display:inline-block;flex:none;width:34px;height:34px;fill:none;stroke:#F5CC59;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body.tbc-checkout-design .tbc-checkout-panel-heading{display:flex;align-items:center;gap:13px;}
body.tbc-checkout-design .tbc-checkout-empty>.tbc-checkout-icon{width:52px;height:52px;margin:0 auto 18px;}
body.tbc-checkout-design .tbc-checkout-delivery h3,body.tbc-checkout-design .tbc-checkout-license-summary h3{display:flex;gap:13px;align-items:center;font:700 16px/1.4 Arial,sans-serif!important;color:#fff!important;margin:0 0 12px!important;}
body.tbc-checkout-design .tbc-checkout-license-summary{border:1px solid #D4AF37;padding:20px;margin-top:18px;border-radius:7px;background:linear-gradient(130deg,#1b170e,#080808);box-shadow:0 0 8px #d4af3725;}
body.tbc-checkout-design .tbc-checkout-license-summary p{font:12px/1.8 Arial,sans-serif!important;color:#ccc!important;margin:0 0 12px!important;}
body.tbc-checkout-design .tbc-checkout-license-summary a{color:#F5CC59!important;font:12px/1.6 Arial,sans-serif!important;}
body.tbc-checkout-design .tbc-checkout-delivery{box-shadow:0 0 9px #d4af3740;}
body.tbc-checkout-design .tbc-checkout-empty{border-color:#F5CC59;box-shadow:inset 0 1px 0 #ffe49b66,0 0 10px #d4af3730;}
body.tbc-checkout-design #edd-payment-mode-wrap legend{position:relative;padding-left:43px!important;min-height:35px;display:flex;align-items:center;}
body.tbc-checkout-design #edd-payment-mode-wrap legend:before{content:'';position:absolute;left:0;top:0;width:32px;height:32px;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23F5CC59%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%226%22%20width%3D%2228%22%20height%3D%2221%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M2%2013h28M7%2021h7%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;}
body.tbc-checkout-design #edd-payment-mode-wrap .edd-gateway-option{border:1px solid #806727!important;border-radius:6px;background:#111;color:#fff!important;min-height:48px;}
body.tbc-checkout-design #edd-payment-mode-wrap .edd-gateway-option-selected{border-color:#F5CC59!important;background:linear-gradient(110deg,#49350b,#12100b)!important;box-shadow:0 0 7px #d4af3745;}
body.tbc-checkout-design #edd_checkout_form_wrap.wp-block-edd-checkout>.edd-blocks__cart #edd_checkout_cart_form{padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;}
body.tbc-checkout-design #edd_checkout_cart .edd-blocks-cart__row{border-color:#665025!important;background:transparent!important;color:#eee!important;}

/* Native EDD block wraps its purchase form in .edd-blocks__purchase-form. */
body.tbc-checkout-design .tbc-checkout-page{max-width:1520px;width:calc(100% - 30px);padding:0;margin:24px auto 40px;}
body.tbc-checkout-design #edd_checkout_form_wrap.wp-block-edd-checkout>.edd-blocks__purchase-form{grid-column:1!important;min-width:0;border:1px solid #F5CC59!important;border-radius:10px!important;padding:26px!important;background:linear-gradient(130deg,#19160e,#080808 64%)!important;box-shadow:inset 0 1px 0 #ffe5a966,0 0 9px #d4af372b!important;}
body.tbc-checkout-design #edd_checkout_form_wrap.wp-block-edd-checkout .edd-blocks__purchase-form>#edd_purchase_form{border:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;}
body.tbc-checkout-design #edd_checkout_form_wrap.wp-block-edd-checkout>.edd-blocks__cart{border-color:#F5CC59!important;box-shadow:inset 0 1px 0 #ffe5a966,0 0 9px #d4af372b!important;}
body.tbc-checkout-design .edd-blocks__purchase-form>.tbc-checkout-panel-heading{margin-bottom:24px!important;}
body.tbc-checkout-design #edd_purchase_form label{font-weight:600!important;}
body.tbc-checkout-design #edd_purchase_form input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]),body.tbc-checkout-design #edd_purchase_form select,body.tbc-checkout-design #edd_purchase_form textarea{background:linear-gradient(130deg,#202020,#111)!important;border-color:#827049!important;border-radius:5px!important;}
body.tbc-checkout-design #edd_purchase_form fieldset{margin-bottom:25px!important;}
body.tbc-checkout-design #edd_purchase_form #edd-payment-mode-wrap{border-top:1px solid #a47d29!important;padding-top:20px!important;}
body.tbc-checkout-design #edd-purchase-button,body.tbc-checkout-design #edd_purchase_form input[type=submit],body.tbc-checkout-design #edd_purchase_form button[type=submit]{background:linear-gradient(#ffe99f,#e9bb49 45%,#bd881f)!important;border:1px solid #ffe49a!important;border-radius:5px!important;box-shadow:inset 0 1px 0 #fff6,0 0 8px #d4af3720!important;color:#080808!important;font:700 16px/1.5 Arial,sans-serif!important;min-height:50px!important;width:100%!important;}
/* Keep EDD's native disabled state and provider-owned input behavior. */
body.tbc-checkout-design #edd_purchase_form [type=submit]:disabled{opacity:.55!important;cursor:not-allowed!important;}
body.tbc-checkout-design .tbc-checkout-hero{border:1px solid #b78f32;border-radius:6px;min-height:245px;display:flex;flex-direction:column;justify-content:center;}
body.tbc-checkout-design .tbc-checkout-empty{border-radius:10px;min-height:240px;}
@media(max-width:800px){body.tbc-checkout-design .tbc-checkout-page{width:calc(100% - 20px);margin:16px auto 28px;}body.tbc-checkout-design #edd_checkout_form_wrap.wp-block-edd-checkout>.edd-blocks__purchase-form{padding:22px 17px!important;}.tbc-checkout-native{margin-top:22px;}}

/* High-contrast remove links; retain EDD URL, nonce, labels and native event handlers. */
body.tbc-checkout-design #edd_checkout_cart .edd-blocks-cart__action-remove,body.tbc-checkout-design #edd_checkout_cart a.edd_cart_remove_item_btn{display:inline-flex!important;align-items:center;justify-content:center;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;opacity:1!important;border:1px solid #a6812b!important;border-radius:5px!important;background:#181409 url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F5CC59%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h18M9%206V3h6v3M5%206l1%2015h12l1-15M10%2010v7m4-7v7%22%2F%3E%3C%2Fsvg%3E") center/20px 20px no-repeat!important;box-shadow:none!important;vertical-align:middle;margin:4px 0 4px 10px!important;position:relative!important;top:auto!important;}
body.tbc-checkout-design #edd_checkout_cart .edd-blocks-cart__action-remove:hover,body.tbc-checkout-design #edd_checkout_cart a.edd_cart_remove_item_btn:hover{border-color:#ffe79a!important;background-color:#30250d!important;}
body.tbc-checkout-design #edd_checkout_cart .edd-blocks-cart__action-remove:focus-visible{outline:2px solid #ffe79a!important;outline-offset:3px;}
body.tbc-checkout-design #edd_checkout_cart .edd_cart_item_price{align-items:center;gap:8px;}
@media(pointer:coarse){body.tbc-checkout-design #edd_checkout_cart .edd-blocks-cart__action-remove{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;}}

/* Refined order information cards: readable copy, icon badges, and a clear license link. */
body.tbc-checkout-design .tbc-checkout-delivery,body.tbc-checkout-design .tbc-checkout-license-summary{position:relative;padding:23px 24px!important;margin-top:20px!important;border:1px solid #aa8531!important;border-radius:9px!important;background:radial-gradient(ellipse at top left,#30261160,transparent 72%),linear-gradient(130deg,#15130e,#080808)!important;box-shadow:inset 0 1px 0 #ffe6a32b,0 4px 15px #0004!important;}
body.tbc-checkout-design .tbc-checkout-delivery h3,body.tbc-checkout-design .tbc-checkout-license-summary h3{gap:14px!important;font:700 17px/1.4 Arial,sans-serif!important;letter-spacing:.25px!important;margin:0 0 15px!important;}
body.tbc-checkout-design .tbc-checkout-delivery h3>.tbc-checkout-icon,body.tbc-checkout-design .tbc-checkout-license-summary h3>.tbc-checkout-icon{width:48px!important;height:48px!important;padding:9px!important;background:linear-gradient(135deg,#3d2c0d,#191409);border:1px solid #8b6d2d;border-radius:10px;}
body.tbc-checkout-design .tbc-checkout-delivery p,body.tbc-checkout-design .tbc-checkout-license-summary p{font:14px/1.8 Arial,sans-serif!important;color:#d8d4cc!important;letter-spacing:normal!important;margin:0!important;max-width:58ch;}
body.tbc-checkout-design .tbc-checkout-license-summary>a{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;margin-top:20px;border:1px solid #9d7b2b;border-radius:5px;background:#201909;color:#f5d681!important;font:700 12px/1.5 Arial,sans-serif!important;text-decoration:none!important;}
body.tbc-checkout-design .tbc-checkout-license-summary>a:hover{background:#30250d;border-color:#F5CC59;}
@media(max-width:480px){body.tbc-checkout-design .tbc-checkout-delivery,body.tbc-checkout-design .tbc-checkout-license-summary{padding:19px 17px!important;}body.tbc-checkout-design .tbc-checkout-delivery h3,body.tbc-checkout-design .tbc-checkout-license-summary h3{font-size:15px!important;}body.tbc-checkout-design .tbc-checkout-license-summary>a{width:100%;}}

/* Purchase-button finish only; EDD remains responsible for submission and disabled state. */
body.tbc-checkout-design #edd-purchase-button,body.tbc-checkout-design #edd_purchase_form input[type=submit],body.tbc-checkout-design #edd_purchase_form button[type=submit]{min-height:56px!important;padding:15px 48px!important;border:1px solid #ffe6a0!important;border-radius:7px!important;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23171005%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%2210%22%20width%3D%2214%22%20height%3D%2211%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%2010V7a4%204%200%200%201%208%200v3M12%2014v3%22%2F%3E%3C%2Fsvg%3E"),linear-gradient(180deg,#fff0ba 0%,#f6cf69 30%,#dcaa37 65%,#bc831a 100%)!important;background-position:20px center,center!important;background-size:21px 21px,cover!important;background-repeat:no-repeat!important;color:#171005!important;font:800 16px/1.4 Arial,Helvetica,sans-serif!important;letter-spacing:.7px!important;text-shadow:0 1px 0 #fff6;box-shadow:inset 0 1px 0 #fff9,inset 0 -2px 0 #7e540b55,0 4px 14px #d4af3725!important;transition:box-shadow .15s,border-color .15s;}
body.tbc-checkout-design #edd_purchase_form [type=submit]:not(:disabled):hover{border-color:#fff3c8!important;box-shadow:inset 0 1px 0 #fff9,0 0 18px #d4af3750!important;}
body.tbc-checkout-design #edd_purchase_form [type=submit]:focus-visible{outline:2px solid #fff0ad!important;outline-offset:4px!important;}
body.tbc-checkout-design #edd_purchase_form [type=submit]:disabled{opacity:.65!important;cursor:not-allowed!important;box-shadow:inset 0 1px 0 #fff4!important;}
@media(prefers-reduced-motion:reduce){body.tbc-checkout-design #edd_purchase_form [type=submit]{transition:none!important;}}
