/* Scoped to the Giftshop bridge and checkout shell; no lottery or native account styles. */
body.kg-giftshop-page{margin:0!important;background:#f4ede2!important;color:#334235;font:16px/1.6 Montserrat,Arial,sans-serif}
.kg-giftshop-page .kg-giftshop-checkout{box-sizing:border-box;width:calc(100% - 40px);max-width:1120px;margin:28px auto;padding:30px;background:#fff;border-radius:14px;box-shadow:0 5px 25px #3342350b}
.kg-giftshop-checkout *{box-sizing:border-box}.kg-giftshop-checkout>header{display:flex;align-items:center;gap:20px;margin-bottom:26px;padding-bottom:20px;border-bottom:3px solid #b08a3e;background:white;color:#334235}
.kg-giftshop-checkout>header img{display:block;width:85px;height:85px;object-fit:contain}.kg-giftshop-checkout>header h1{font:400 30px/1.25 Cinzel,Georgia,serif;margin:7px 0 0}.kg-giftshop-checkout>header strong{font-size:12px;letter-spacing:2px}
.kg-giftshop-checkout h3{font-size:20px;color:#334235;line-height:1.35;margin:22px 0 15px}
.kg-giftshop-checkout form.checkout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:0 30px;align-items:start}
.kg-giftshop-checkout #customer_details{display:block;grid-column:1;grid-row:1 / span 4;width:100%;float:none}
.kg-giftshop-checkout #customer_details>.col-1,.kg-giftshop-checkout #customer_details>.col-2{width:100%;float:none;margin:0;max-width:none}
.kg-giftshop-checkout #order_review_heading{grid-column:2;grid-row:1;margin-top:0}
.kg-giftshop-checkout #order_review{grid-column:2;grid-row:2;min-width:0;padding:18px;border:1px solid #d1dac8;background:#faf8f3;border-radius:10px}
.kg-giftshop-checkout .form-row{display:block;margin:0 0 16px;padding:0;width:100%;float:none;clear:both}
.kg-giftshop-checkout .form-row label{display:block;margin:0 0 6px;font-size:14px;font-weight:600}
.kg-giftshop-checkout input.input-text,.kg-giftshop-checkout input[type=date],.kg-giftshop-checkout textarea,.kg-giftshop-checkout select{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:46px;padding:11px 12px;border:1px solid #bbc7b0;border-radius:6px;background:white;color:#334235;font:16px/1.4 Montserrat,Arial,sans-serif}
.kg-giftshop-checkout input:focus-visible,.kg-giftshop-checkout textarea:focus-visible,.kg-giftshop-checkout select:focus-visible{outline:2px solid #8a9977;outline-offset:2px}
.kg-giftshop-checkout textarea{min-height:100px;resize:vertical}.kg-giftshop-checkout input[type=checkbox],.kg-giftshop-checkout input[type=radio]{width:18px;height:18px;accent-color:#526349}
.kg-giftshop-checkout #ship-to-different-address{font-size:17px}.kg-giftshop-checkout #ship-to-different-address label{display:flex;gap:10px;align-items:center;margin:22px 0 15px}
.kg-giftshop-checkout .select2-container{width:100%!important}.kg-giftshop-checkout .select2-selection--single{min-height:46px;border:1px solid #bbc7b0;border-radius:6px}.kg-giftshop-checkout .select2-selection__rendered{line-height:44px!important}.kg-giftshop-checkout .select2-selection__arrow{height:44px!important}
.kg-giftshop-checkout table.shop_table{width:100%;border-collapse:collapse;table-layout:auto;margin:0 0 18px;font-size:14px}
.kg-giftshop-checkout table.shop_table td,.kg-giftshop-checkout table.shop_table th{padding:12px 5px;border-bottom:1px solid #d8dfd0;vertical-align:top}.kg-giftshop-checkout .product-total,.kg-giftshop-checkout tfoot td{text-align:right;white-space:nowrap}
.kg-giftshop-checkout dl.variation{font-size:12px;line-height:1.5;margin:8px 0 0}.kg-giftshop-checkout dl.variation dt{float:left;clear:left;margin:0 4px 0 0;font-weight:600}.kg-giftshop-checkout dl.variation dd{margin:0 0 4px}.kg-giftshop-checkout dl.variation p{margin:0}
.kg-giftshop-checkout .woocommerce-info,.kg-giftshop-checkout .woocommerce-error,.kg-giftshop-checkout .woocommerce-message{padding:14px 18px;margin:0 0 20px;background:#e4e9dc;border:0;border-left:4px solid #b08a3e;list-style-position:inside}
.kg-giftshop-checkout .woocommerce-error{background:#fff1ed;color:#8b3024}.kg-giftshop-checkout form.checkout>.woocommerce-NoticeGroup{grid-column:1 / -1}
.kg-giftshop-checkout .shipping_address{margin-bottom:20px}.kg-giftshop-checkout #place_order{width:100%;min-height:50px;font-size:17px;border-radius:7px;background:#526349;color:white}
.kg-giftshop-checkout ul#shipping_method{list-style:none;padding:0;text-align:left}.kg-giftshop-checkout ul#shipping_method label{display:inline;font-size:13px;font-weight:400}
@media(max-width:850px){.kg-giftshop-page .kg-giftshop-checkout{width:calc(100% - 20px);padding:20px;margin:10px auto}.kg-giftshop-checkout form.checkout{display:block}.kg-giftshop-checkout #order_review_heading{margin-top:28px}.kg-giftshop-checkout #order_review{padding:14px}.kg-giftshop-checkout>header h1{font-size:25px}.kg-giftshop-checkout>header img{width:68px;height:68px}.kg-giftshop-checkout>header{gap:15px}.kg-giftshop-checkout>header strong{font-size:10px;letter-spacing:1px}}

/* Native WooCommerce account, scoped to this Giftshop shell. */
.kg-giftshop-checkout .woocommerce-MyAccount-navigation{float:none;width:auto;margin:22px 0}.kg-giftshop-checkout .woocommerce-MyAccount-navigation ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0}.kg-giftshop-checkout .woocommerce-MyAccount-navigation a{display:block;padding:10px 14px;background:#e4e9dc;border-radius:6px;text-decoration:none}.kg-giftshop-checkout .woocommerce-MyAccount-navigation .is-active a{background:#526349;color:white}.kg-giftshop-checkout .woocommerce-MyAccount-content{float:none;width:100%;overflow-wrap:anywhere}.kg-giftshop-checkout .woocommerce-form{padding:20px;border:1px solid #bcc8b3;border-radius:8px}.kg-giftshop-checkout input[type=email],.kg-giftshop-checkout input[type=password]{box-sizing:border-box;width:100%;min-height:46px;padding:11px;border:1px solid #bbc7b0;border-radius:6px;font:inherit}.kg-giftshop-checkout .woocommerce-form label{font-weight:600}.kg-giftshop-checkout .woocommerce-account-fields{margin:18px 0}.kg-giftshop-checkout .woocommerce-orders-table{font-size:14px}@media(max-width:650px){.kg-giftshop-checkout .woocommerce-MyAccount-content{overflow-x:auto}.kg-giftshop-checkout .woocommerce-form{padding:12px}}

/* Account details stay aligned despite shared theme float rules. */
.kg-account-page .woocommerce-EditAccountForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}
.kg-account-page .woocommerce-EditAccountForm .form-row{float:none!important;clear:none!important;width:100%!important;margin:0!important;padding:0!important;box-sizing:border-box}
.kg-account-page .woocommerce-EditAccountForm>p:not(.form-row-first):not(.form-row-last),.kg-account-page .woocommerce-EditAccountForm>fieldset{grid-column:1/-1}
.kg-account-page .woocommerce-EditAccountForm fieldset{min-width:0;border:1px solid #c4cebc;border-radius:8px;padding:18px}.kg-account-page .woocommerce-EditAccountForm fieldset .form-row{margin:12px 0!important}
.kg-account-page .woocommerce-EditAccountForm .clear{display:none}.kg-account-page .woocommerce-form-login,.kg-account-page .woocommerce-form-register{margin:0}
.kg-account-page #customer_login{display:flex;gap:20px;align-items:start}.kg-account-page #customer_login>div{float:none;width:auto;flex:1;min-width:0}
.kg-giftshop-page .kg-account-footer{margin-top:32px;padding:22px 12px 0;border-top:1px solid #b08a3e;text-align:center;color:#526349;font-size:13px;line-height:1.7}
@media(max-width:650px){.kg-account-page #customer_login{display:block}.kg-account-page #customer_login>div{width:100%;margin-bottom:24px}.kg-account-page .woocommerce-EditAccountForm{grid-template-columns:1fr}.kg-account-page .woocommerce-EditAccountForm>p,.kg-account-page .woocommerce-EditAccountForm>fieldset{grid-column:1}.kg-account-page .woocommerce-MyAccount-navigation ul{display:grid;grid-template-columns:1fr 1fr}.kg-account-page .woocommerce-MyAccount-navigation a{height:100%;box-sizing:border-box;padding:12px 10px}.kg-giftshop-page .kg-account-footer{margin-top:24px}}

/* Align name labels/inputs on tablet and desktop; use one column on phones. */
.kg-account-page .woocommerce-EditAccountForm>p.form-row-first,.kg-account-page .woocommerce-EditAccountForm>p.form-row-last{align-self:start;grid-row:1;min-width:0}
.kg-account-page .woocommerce-EditAccountForm>p.form-row-first{grid-column:1}.kg-account-page .woocommerce-EditAccountForm>p.form-row-last{grid-column:2}
.kg-giftshop-checkout .woocommerce-billing-fields__field-wrapper,.kg-giftshop-checkout .woocommerce-shipping-fields__field-wrapper{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
.kg-giftshop-checkout .woocommerce-billing-fields__field-wrapper>.form-row,.kg-giftshop-checkout .woocommerce-shipping-fields__field-wrapper>.form-row{grid-column:1/-1;float:none!important;clear:none!important;width:100%!important;min-width:0;margin:0!important;padding:0!important}
.kg-giftshop-checkout #billing_first_name_field,.kg-giftshop-checkout #shipping_first_name_field{grid-column:1;grid-row:1}
.kg-giftshop-checkout #billing_last_name_field,.kg-giftshop-checkout #shipping_last_name_field{grid-column:2;grid-row:1}
.kg-giftshop-checkout .woocommerce-input-wrapper{display:block;min-width:0}.kg-giftshop-checkout .form-row input{max-width:100%}
.kg-giftshop-checkout .woocommerce-MyAccount-content .woocommerce-table--order-details{display:block;overflow-x:auto}.kg-account-page .woocommerce-MyAccount-content .woocommerce-orders-table{display:table;width:100%;table-layout:fixed}.kg-account-page .woocommerce-orders-table td,.kg-account-page .woocommerce-orders-table th{overflow-wrap:anywhere;white-space:normal}
@media(max-width:650px){.kg-account-page .woocommerce-EditAccountForm>p.form-row-first,.kg-account-page .woocommerce-EditAccountForm>p.form-row-last{grid-column:1;grid-row:auto}.kg-giftshop-checkout .woocommerce-billing-fields__field-wrapper,.kg-giftshop-checkout .woocommerce-shipping-fields__field-wrapper{grid-template-columns:1fr}.kg-giftshop-checkout #billing_first_name_field,.kg-giftshop-checkout #billing_last_name_field,.kg-giftshop-checkout #shipping_first_name_field,.kg-giftshop-checkout #shipping_last_name_field{grid-column:1;grid-row:auto}.kg-account-page .woocommerce-orders-table,.kg-account-page .woocommerce-orders-table tbody,.kg-account-page .woocommerce-orders-table tr,.kg-account-page .woocommerce-orders-table td{display:block;width:100%}.kg-account-page .woocommerce-orders-table thead{display:none}.kg-account-page .woocommerce-orders-table tr{padding:12px;margin-bottom:14px;border:1px solid #d1dac8;border-radius:8px}.kg-account-page .woocommerce-orders-table td{display:flex;gap:12px;justify-content:space-between;text-align:right!important;padding:9px 0}.kg-account-page .woocommerce-orders-table td:before{content:attr(data-title);font-weight:600;text-align:left}.kg-account-page .woocommerce-orders-table .button{min-height:44px;padding:10px 14px}.kg-giftshop-checkout>header>div{min-width:0}.kg-giftshop-checkout>header a{overflow-wrap:anywhere}.kg-giftshop-checkout>header img{width:62px;height:62px}.kg-giftshop-checkout>header h1{font-size:25px}}

/* Account address forms use a separate WooCommerce wrapper. */
.kg-account-page .woocommerce-address-fields__field-wrapper{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}
.kg-account-page .woocommerce-address-fields__field-wrapper>.form-row{grid-column:1/-1;float:none!important;clear:none!important;width:100%!important;min-width:0;margin:0!important;padding:0!important}
.kg-account-page .woocommerce-address-fields__field-wrapper>#billing_first_name_field,.kg-account-page .woocommerce-address-fields__field-wrapper>#shipping_first_name_field{grid-column:1;grid-row:1}
.kg-account-page .woocommerce-address-fields__field-wrapper>#billing_last_name_field,.kg-account-page .woocommerce-address-fields__field-wrapper>#shipping_last_name_field{grid-column:2;grid-row:1}
.kg-giftshop-checkout .woocommerce-error:before,.kg-giftshop-checkout .woocommerce-message:before,.kg-giftshop-checkout .woocommerce-info:before{display:none}.kg-giftshop-checkout .woocommerce-error li{padding:0;margin:0 0 8px}
@media(max-width:650px){.kg-account-page .woocommerce-address-fields__field-wrapper{grid-template-columns:1fr}.kg-account-page .woocommerce-address-fields__field-wrapper>#billing_first_name_field,.kg-account-page .woocommerce-address-fields__field-wrapper>#billing_last_name_field,.kg-account-page .woocommerce-address-fields__field-wrapper>#shipping_first_name_field,.kg-account-page .woocommerce-address-fields__field-wrapper>#shipping_last_name_field{grid-column:1;grid-row:auto}}

/* Giftshop password reset: one readable column on desktop, tablet and phone. */
.kg-account-page form.woocommerce-ResetPassword{
 display:block!important;width:100%!important;max-width:600px;min-width:0;margin:0;padding:0;
}
.kg-account-page form.woocommerce-ResetPassword .form-row{
 display:block!important;float:none!important;clear:both!important;
 width:100%!important;max-width:100%;min-width:0;margin:0 0 20px!important;padding:0!important;
}
.kg-account-page form.woocommerce-ResetPassword .form-row label{
 display:block;margin:0 0 8px;line-height:1.5;
}
.kg-account-page form.woocommerce-ResetPassword .password-input{
 display:block;position:relative;width:100%;min-width:0;
}
.kg-account-page form.woocommerce-ResetPassword input.input-text{
 display:block;box-sizing:border-box;width:100%!important;max-width:100%;min-height:48px;
 font-size:16px;padding-right:48px;
}
.kg-account-page form.woocommerce-ResetPassword .woocommerce-Button{
 float:none!important;min-height:46px;padding:12px 22px;line-height:1.4;
}
@media(max-width:650px){
 .kg-account-page form.woocommerce-ResetPassword{max-width:none}
 .kg-account-page form.woocommerce-ResetPassword .woocommerce-Button{width:100%}
}

/* Catalogue thumbnails in the Giftshop checkout order review only. */
.kg-giftshop-page #order_review .kg-review-product{display:inline-flex;align-items:center;gap:10px;max-width:100%;vertical-align:middle;min-width:0}
.kg-giftshop-page #order_review .kg-review-product-photo{display:block;float:none!important;flex:0 0 56px;width:56px!important;height:64px!important;max-width:56px!important;object-fit:contain;background:#fff;border-radius:6px;margin:0!important;padding:3px}
.kg-giftshop-page #order_review .kg-review-product-name{display:block;min-width:0;overflow-wrap:anywhere;line-height:1.45}
@media(max-width:650px){
 .kg-giftshop-page #order_review .kg-review-product{gap:8px}
 .kg-giftshop-page #order_review .kg-review-product-photo{flex-basis:44px;width:44px!important;height:54px!important;max-width:44px!important}
}

/* Cart replacement is always an explicit customer choice. */
.kg-giftshop-checkout .kg-cart-replace{display:flex;gap:12px;align-items:flex-start;padding:18px 0;font-size:15px;white-space:normal}
.kg-cart-replace input{flex:0 0 20px;width:20px;height:20px;margin:3px 0 0;accent-color:#526349}
.kg-giftshop-checkout .kg-note{white-space:normal}.kg-giftshop-checkout .kg-note h2{font-size:21px;margin-top:0}

/* Giftshop age information, using the existing age validation. */
.kg-giftshop-checkout .kg-nix18{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#e4e9dc;padding:13px 15px;border-radius:6px;font-size:14px;line-height:1.5}
.kg-giftshop-checkout .kg-nix18-logo{display:block;flex:0 0 auto;width:112px!important;max-width:100%;height:auto!important;margin:0;padding:0;border:0;background:transparent;object-fit:contain}
/* Keep each product readable on phones, including long delivery labels. */
@media(max-width:650px){
 .kg-giftshop-page .kg-giftshop-checkout{min-width:0;max-width:100%}
 .kg-giftshop-checkout #order_review{width:100%;max-width:100%;min-width:0;padding:12px}
 .kg-giftshop-checkout table.shop_table{display:block;width:100%!important;min-width:0!important;max-width:100%;table-layout:fixed;font-size:14px}
 .kg-giftshop-checkout table.shop_table thead{display:none}
 .kg-giftshop-checkout table.shop_table tbody,.kg-giftshop-checkout table.shop_table tfoot{display:block;width:100%}
 .kg-giftshop-checkout table.shop_table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;width:100%;border-bottom:1px solid #d8dfd0}
 .kg-giftshop-checkout table.shop_table td,.kg-giftshop-checkout table.shop_table th{display:block;width:auto!important;min-width:0;max-width:100%;border:0;padding:14px 0;white-space:normal!important;overflow-wrap:anywhere}
 .kg-giftshop-checkout table.shop_table tbody .product-total{white-space:nowrap!important;align-self:start}
 .kg-giftshop-page #order_review .kg-review-product{display:flex;width:100%;align-items:flex-start;gap:10px}
 .kg-giftshop-page #order_review .kg-review-product-name{flex:1;font-size:14px;word-break:normal;overflow-wrap:anywhere}
 .kg-giftshop-checkout table.shop_table .product-quantity{display:block;margin:6px 0 0}
 .kg-giftshop-checkout table.shop_table dl.variation{display:block;clear:both;margin-top:12px;font-size:12px}
 .kg-giftshop-checkout table.shop_table dl.variation dt{float:none;display:block;margin:7px 0 0}
 .kg-giftshop-checkout table.shop_table dl.variation dd{display:block;margin:0;white-space:normal;overflow-wrap:anywhere}
 .kg-giftshop-checkout table.shop_table tfoot tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .kg-giftshop-checkout table.shop_table tfoot td{text-align:right}
 .kg-giftshop-checkout table.shop_table tr.shipping{grid-template-columns:minmax(0,1fr);gap:0;padding:12px 0}
 .kg-giftshop-checkout table.shop_table tr.shipping th,.kg-giftshop-checkout table.shop_table tr.shipping td{padding:3px 0;text-align:left}
 .kg-giftshop-checkout table.shop_table ul#shipping_method{margin:0;white-space:normal}
 .kg-giftshop-checkout table.shop_table ul#shipping_method li,.kg-giftshop-checkout table.shop_table ul#shipping_method label{white-space:normal!important;overflow-wrap:anywhere}
 .kg-giftshop-checkout table.shop_table .includes_tax{font-size:11px;line-height:1.5;white-space:normal}
 .kg-giftshop-checkout #payment{min-width:0;max-width:100%;box-sizing:border-box}
}
@media(max-width:650px){.kg-giftshop-checkout table.shop_table .includes_tax{display:block;margin-top:5px}}

.kg-giftshop-checkout .kg-newsletter-choice{padding:16px 0;margin:8px 0;border-top:1px solid #d8dfd0;text-align:left}
.kg-giftshop-checkout .kg-newsletter-choice label.checkbox{display:flex!important;align-items:flex-start!important;gap:10px;font-size:14px;line-height:1.6;white-space:normal}
.kg-giftshop-checkout .kg-newsletter-choice input[type=checkbox]{flex:0 0 18px;margin-top:4px}
.kg-giftshop-checkout .kg-newsletter-choice .kg-age-description{font-size:12px;margin:10px 0 0}

/* Keep checkout columns within the order panel, including long shipping labels.
   Auto table sizing plus nowrap on all footer cells can push totals off-screen. */
.kg-giftshop-page .kg-giftshop-checkout #order_review table.shop_table{
 width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed;
}
.kg-giftshop-page #order_review table.shop_table .product-name{width:68%;white-space:normal;overflow-wrap:anywhere;word-break:normal}
.kg-giftshop-page #order_review table.shop_table .product-total{width:32%;white-space:nowrap;text-align:right}
.kg-giftshop-page #order_review table.shop_table tfoot th,
.kg-giftshop-page #order_review table.shop_table tfoot td{white-space:normal;overflow-wrap:anywhere;word-break:normal}
.kg-giftshop-page #order_review table.shop_table .amount{white-space:nowrap}
.kg-giftshop-page #order_review .kg-review-product{display:flex;width:100%;align-items:flex-start}
.kg-giftshop-page #order_review .kg-review-product-name{flex:1;word-break:normal;overflow-wrap:break-word}
.kg-giftshop-page #order_review .includes_tax{display:block;white-space:normal;font-size:11px;line-height:1.5}
.kg-giftshop-page #order_review #payment,.kg-giftshop-page #order_review .payment_box{min-width:0;max-width:100%;overflow-wrap:anywhere}
@media(max-width:650px){
 .kg-giftshop-page #order_review table.shop_table .product-name,
 .kg-giftshop-page #order_review table.shop_table .product-total{width:auto}
}
