/* KLYQ v12.5 — final account, cart and gifting interaction pass. */

/* Account action buttons all use the same black-to-lime interaction. */
body.woocommerce-account .klyq-account-page .woocommerce-MyAccount-content .woocommerce-info .button,
body.woocommerce-account .klyq-account-page .woocommerce-MyAccount-content .woocommerce-Address .edit,
body.woocommerce-account .klyq-account-page .woocommerce-MyAccount-content .woocommerce-orders-table .button,
body.woocommerce-account .klyq-account-page .woocommerce-MyAccount-content .woocommerce-downloads .button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:40px!important;padding:0 14px!important;border:1px solid #11141a!important;border-radius:7px!important;
  background:#11141a!important;color:#fff!important;font-size:9px!important;font-weight:950!important;
  transition:transform .18s ease,background-color .18s ease,color .18s ease,border-color .18s ease!important;
}
body.woocommerce-account .klyq-account-page .woocommerce-MyAccount-content .woocommerce-info .button:hover,
body.woocommerce-account .klyq-account-page .woocommerce-MyAccount-content .woocommerce-info .button:focus-visible,
body.woocommerce-account .klyq-account-page .woocommerce-MyAccount-content .woocommerce-Address .edit:hover,
body.woocommerce-account .klyq-account-page .woocommerce-MyAccount-content .woocommerce-Address .edit:focus-visible,
body.woocommerce-account .klyq-account-page .woocommerce-MyAccount-content .woocommerce-orders-table .button:hover,
body.woocommerce-account .klyq-account-page .woocommerce-MyAccount-content .woocommerce-orders-table .button:focus-visible,
body.woocommerce-account .klyq-account-page .woocommerce-MyAccount-content .woocommerce-downloads .button:hover,
body.woocommerce-account .klyq-account-page .woocommerce-MyAccount-content .woocommerce-downloads .button:focus-visible{
  transform:translateY(-2px)!important;border-color:var(--klyq-lime)!important;background:var(--klyq-lime)!important;color:#050607!important;
}

/* Keep action text before the button, without the old float / negative-margin layout. */
body.woocommerce-account .klyq-account-page .woocommerce-info.klyq-account-notice,
body.woocommerce-account .klyq-account-page .woocommerce-info.klyq-order-email-confirmation{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px 16px!important;align-items:center!important;
  min-height:0!important;margin:0 0 12px!important;padding:18px 20px 18px 68px!important;
}
body.woocommerce-account .klyq-account-page .woocommerce-info.klyq-account-notice .klyq-account-notice-copy,
body.woocommerce-account .klyq-account-page .woocommerce-info.klyq-order-email-confirmation .klyq-account-notice-copy{
  display:block!important;min-width:0!important;line-height:1.5!important;
}
body.woocommerce-account .klyq-account-page .woocommerce-info.klyq-account-notice .button,
body.woocommerce-account .klyq-account-page .woocommerce-info.klyq-order-email-confirmation .button{
  float:none!important;justify-self:end!important;margin:0!important;white-space:nowrap!important;
}
.klyq-order-email-confirmation-status{grid-column:1/-1!important;display:block;min-height:15px;color:#65717e;font-size:10px;font-weight:750;line-height:1.4}
.klyq-order-email-confirmation-status[data-state="success"],.klyq-order-email-confirmation-status[data-state="ready"]{color:#167844}
.klyq-order-email-confirmation-status[data-state="error"]{color:#b32932}
.klyq-order-email-legacy-hidden{display:none!important}

/* The address overview has one real two-card row on desktop. */
body.woocommerce-account.klyq-account-endpoint-edit-address .woocommerce-MyAccount-content{min-width:0!important}
body.woocommerce-account.klyq-account-endpoint-edit-address .woocommerce-MyAccount-content :is(.woocommerce-Addresses,.woocommerce-Addresses .u-columns.col2-set,.u-columns.col2-set.woocommerce-Addresses){
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:18px!important;
  width:100%!important;margin:0!important;align-items:stretch!important;
}
body.woocommerce-account.klyq-account-endpoint-edit-address .woocommerce-MyAccount-content :is(.woocommerce-Addresses,.woocommerce-Addresses .u-columns.col2-set,.u-columns.col2-set.woocommerce-Addresses)>:is(.woocommerce-Address,.u-column1,.u-column2,.col-1,.col-2){
  display:flex!important;float:none!important;clear:none!important;position:static!important;inset:auto!important;transform:none!important;
  width:auto!important;min-width:0!important;min-height:250px!important;height:100%!important;margin:0!important;padding:24px!important;
  flex-direction:column!important;grid-column:auto!important;grid-row:auto!important;
}
body.woocommerce-account.klyq-account-endpoint-edit-address .woocommerce-MyAccount-content .woocommerce-Address address{margin:auto 0 0!important}

/* The surrounding password disclosure stays neutral; only its button changes on hover. */
body.woocommerce-account .klyq-account-page .klyq-security-panel summary:hover strong{
  transform:none!important;border-color:#11141a!important;background:#11141a!important;color:#fff!important;
}
body.woocommerce-account .klyq-account-page .klyq-security-panel summary strong:hover,
body.woocommerce-account .klyq-account-page .klyq-security-panel summary strong:focus-visible{
  transform:translateY(-1px)!important;border-color:var(--klyq-lime)!important;background:var(--klyq-lime)!important;color:#050607!important;
}

/* Custom account feedback and the password-setting view match the modal forms. */
.klyq-account-form-notice{margin:0 0 14px;padding:12px 14px;border:1px solid #dce3eb;border-radius:9px;background:#f7f9fb;color:#263242;font-size:11px;font-weight:750;line-height:1.45}
.klyq-account-form-notice.success{border-color:#b5ddbd;background:#f5fff5;color:#176f3e}
.klyq-account-form-notice.error{border-color:#f1c9cd;background:#fff8f8;color:#a2202b}
.klyq-modal-source-hidden{display:none!important}
.klyq-account-box .klyq-reset-account-form{display:grid;gap:13px}
.klyq-account-box .klyq-reset-account-form label{display:grid;gap:7px;color:#11141a;font-size:11px;font-weight:850}
.klyq-account-box .klyq-reset-account-form input{width:100%;min-height:46px;border:1px solid #cbd4df;border-radius:8px;padding:10px 12px;background:#fff;color:#11141a;font:inherit}

/* The same black / white verification control is used on the order-help page and elsewhere. */
.klyq-human-open{border-color:#11141a!important;background:#11141a!important;color:#fff!important;transition:transform .18s ease,background-color .18s ease,color .18s ease,border-color .18s ease!important}
.klyq-human-open:hover,.klyq-human-open:focus-visible{transform:translateY(-1px)!important;border-color:var(--klyq-lime)!important;background:var(--klyq-lime)!important;color:#050607!important}

/* Compact cart grid: notices never reserve an empty row and manual update is no longer needed. */
.klyq-cart-page>.woocommerce{grid-auto-flow:row!important;grid-template-rows:none!important}
.klyq-cart-page>.woocommerce>.klyq-cart-gift-cta,
.klyq-cart-page>.woocommerce>.woocommerce-notices-wrapper{grid-column:1/-1!important;grid-row:auto!important}
.klyq-cart-page>.woocommerce>.woocommerce-cart-form{grid-column:1!important;grid-row:auto!important}
.klyq-cart-page>.woocommerce>.cart-collaterals{grid-column:2!important;grid-row:auto!important}
.klyq-cart-page .woocommerce-notices-wrapper{min-height:0!important;margin:0 0 12px!important;padding:0!important;border:0!important;background:transparent!important}
.klyq-cart-page .woocommerce-notices-wrapper>.woocommerce-message,
.klyq-cart-page .woocommerce-notices-wrapper>.woocommerce-info,
.klyq-cart-page .woocommerce-notices-wrapper>.woocommerce-error{min-height:0!important;margin:0!important}
.klyq-cart-page [name="update_cart"]{display:none!important}

/* Gift boxes use a clear 1–10 selector in both the cart and drawer. */
.klyq-gift-quantity{gap:8px!important;padding:5px 8px!important;background:#f2f5e8!important}
.klyq-gift-quantity select,.klyq-gift-drawer-select select{
  min-width:58px!important;min-height:34px!important;padding:0 26px 0 9px!important;border:1px solid #cbd4df!important;border-radius:7px!important;
  background:#fff!important;color:#11141a!important;font-size:11px!important;font-weight:900!important;cursor:pointer!important;
}
.klyq-gift-drawer-select{display:inline-flex!important;align-items:center!important;gap:6px!important;min-height:34px!important}
.klyq-gift-drawer-select>span{font-size:8px!important;font-weight:950!important;letter-spacing:.06em!important}
.klyq-gift-card-image{display:block!important;width:88px!important;height:88px!important;max-width:100%!important;border-radius:8px!important;background:#f5f7fa!important;object-fit:contain!important}
.klyq-checkout-gift-card-thumb{display:inline-flex;vertical-align:middle;margin-right:7px}
.klyq-checkout-gift-card-thumb img{width:30px;height:30px;border-radius:5px;background:#f5f7fa;object-fit:contain}

/* Gift quick actions, saved-list removal and the draft hand-off use the standard inverted action style. */
.klyq-card-tool.gift,.klyq-loop-action.gift{border-color:#11141a!important;background:#11141a!important;color:var(--klyq-lime)!important}
.klyq-card-tool.gift:hover,.klyq-card-tool.gift:focus-visible,.klyq-loop-action.gift:hover,.klyq-loop-action.gift:focus-visible{border-color:var(--klyq-lime)!important;background:var(--klyq-lime)!important;color:#050607!important}
.klyq-wishlist-item [data-klyq-wishlist-remove]{border-color:#11141a!important;background:#11141a!important;color:#fff!important;transition:transform .18s ease,background-color .18s ease,color .18s ease,border-color .18s ease!important}
.klyq-wishlist-item [data-klyq-wishlist-remove]:hover,.klyq-wishlist-item [data-klyq-wishlist-remove]:focus-visible{transform:translateY(-2px)!important;border-color:var(--klyq-lime)!important;background:var(--klyq-lime)!important;color:#050607!important}
.klyq-gift-draft-toast[hidden]{display:none!important}
.klyq-gift-draft-toast{position:fixed;right:22px;bottom:22px;z-index:210340;display:grid;grid-template-columns:34px minmax(0,1fr) auto 30px;align-items:center;gap:10px;width:min(510px,calc(100vw - 28px));padding:13px;border:1px solid #24304a;border-radius:12px;background:#101827;color:#fff;box-shadow:0 18px 50px rgba(0,0,0,.25);opacity:0;transform:translateY(14px);transition:opacity .2s ease,transform .2s ease}
.klyq-gift-draft-toast.show{opacity:1;transform:translateY(0)}
.klyq-gift-draft-toast>i{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:var(--klyq-lime);color:#050607;font-style:normal;font-weight:950}
.klyq-gift-draft-toast b,.klyq-gift-draft-toast small{display:block}.klyq-gift-draft-toast b{font-size:11px}.klyq-gift-draft-toast small{margin-top:2px;color:#cbd4e6;font-size:9px;line-height:1.35}
.klyq-gift-draft-toast a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 10px;border-radius:6px;background:var(--klyq-lime);color:#050607;font-size:8px;font-weight:950;text-decoration:none}
.klyq-gift-draft-toast a:hover{background:#fff;color:#11141a}.klyq-gift-draft-toast button{width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:#fff;font-size:19px;cursor:pointer}.klyq-gift-draft-toast button:hover{background:rgba(255,255,255,.14)}

@media(max-width:782px){
  body.woocommerce-account .klyq-account-page .woocommerce-info.klyq-account-notice,
  body.woocommerce-account .klyq-account-page .woocommerce-info.klyq-order-email-confirmation{grid-template-columns:1fr!important;padding:56px 16px 16px!important;text-align:center!important}
  body.woocommerce-account .klyq-account-page .woocommerce-info.klyq-account-notice .button,
  body.woocommerce-account .klyq-account-page .woocommerce-info.klyq-order-email-confirmation .button{justify-self:center!important}
  body.woocommerce-account.klyq-account-endpoint-edit-address .woocommerce-MyAccount-content :is(.woocommerce-Addresses,.woocommerce-Addresses .u-columns.col2-set,.u-columns.col2-set.woocommerce-Addresses){grid-template-columns:1fr!important}
  .klyq-cart-page>.woocommerce>.woocommerce-cart-form,.klyq-cart-page>.woocommerce>.cart-collaterals{grid-column:1/-1!important;grid-row:auto!important}
  .klyq-gift-draft-toast{right:14px;bottom:70px;grid-template-columns:34px minmax(0,1fr) 30px}.klyq-gift-draft-toast a{grid-column:2/3;justify-self:start}
}
