.bz-greeting-category-note{font-size:14px!important;line-height:1.75!important;max-width:780px;margin:20px 0 0!important;color:var(--wp--preset--color--text,#62625B)}
.bz-greeting-category-note a,.bz-greeting-edit-link{color:var(--wp--preset--color--brand, #314E40);text-underline-offset:3px}
.bz-greeting-edit-link{display:inline-block;margin:4px 0;font-size:12px!important;text-decoration:underline!important;background:none!important;border:0!important;padding:0!important;min-height:32px;cursor:pointer;font-family:inherit}
.bz-greeting-dialog{box-sizing:border-box;width:min(540px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:32px;border:1px solid var(--wp--preset--color--line, #E3DED4);border-radius:6px;background:var(--wp--preset--color--surface-light, #FBFAF8);color:var(--wp--preset--color--graphite, #242421)}
.bz-greeting-dialog::backdrop{background:rgba(36,36,33,.48)}
.bz-greeting-dialog h2{font-family:var(--wp--preset--font-family--heading,Trirong),serif;font-size:26px!important;font-weight:400;line-height:1.3;margin:0 24px 20px 0}
.bz-greeting-dialog p{font-size:14px;line-height:1.7}
.bz-greeting-dialog__close{position:absolute;right:10px;top:8px;width:36px;height:36px;padding:0;border:0;background:transparent;color:var(--wp--preset--color--brand, #314E40);font-size:26px;cursor:pointer}
.bz-greeting-dialog__image{display:block;width:100%;height:auto;border-radius:4px}
.bz-greeting-dialog-open{overflow:hidden}
.bz-greeting-editor__choice{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.6;cursor:pointer;margin:0 0 18px}.bz-greeting-editor__choice input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--wp--preset--color--brand, #314E40);flex-shrink:0}
.bz-greeting-editor__fields>label{display:block;font-size:13px;margin-bottom:8px}.bz-greeting-editor__fields textarea{display:block;box-sizing:border-box;width:100%;padding:12px;border:1px solid var(--wp--preset--color--line, #E3DED4);border-radius:4px;background:white;font:inherit;font-size:16px;resize:vertical}
.bz-greeting-editor__meta{display:flex;justify-content:space-between;gap:12px;font-size:11px;line-height:1.6;margin-top:8px}.bz-greeting-editor__meta>span:last-child{white-space:nowrap}
.bz-greeting-dialog [type=submit]{width:100%;margin-top:20px;min-height:53px;padding:9px 24px;font:500 14px/1.2 var(--wp--preset--font-family--body,Poppins),sans-serif;background:var(--wp--preset--color--brand, #314E40);color:#fff;border:1px solid var(--wp--preset--color--brand, #314E40);border-radius:6px;cursor:pointer}
.bz-greeting-editor__error{color:#9b302c}.bz-greeting-dialog [hidden]{display:none!important}
.bz-greeting-dialog :focus-visible{outline:2px solid var(--wp--preset--color--brand, #314E40);outline-offset:3px}

@media(max-width:767px){.bz-greeting-category-note{text-align:center;margin-left:auto!important;margin-right:auto!important}.bz-greeting-dialog{padding:26px 20px}.bz-greeting-dialog h2{font-size:24px!important}}

.bz-greeting-editor__box+ .bz-greeting-editor__box{margin-top:22px;padding-top:20px;border-top:1px solid var(--wp--preset--color--line, #E3DED4)}
.bz-greeting-editor__box>label{display:block;margin-bottom:8px;font-size:13px;font-weight:500;color:var(--wp--preset--color--brand, #314E40)}

.bz-greeting-cart-preview{display:block;overflow-wrap:anywhere;font-size:12px;line-height:1.55;margin-top:3px}
.bz-greeting-edit-link{font-size:13px!important;min-height:36px;line-height:1.5;padding:6px 0!important}
.bz-greeting-editor__remove{border:0;background:transparent;color:var(--wp--preset--color--brand,#314E40);text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:8px 0;margin-top:12px;cursor:pointer;font:inherit;font-size:14px}

/* One calm card surface for both the invitation and the saved message.
   Native Woo spans/LI stay in place; hidden branches must remain hidden. */
body :is(.wp-block-woocommerce-cart,.wc-block-mini-cart__drawer,.wp-block-woocommerce-checkout) :is(.wc-block-components-product-details__nemokama-sveikinimo-kortelė,.wc-block-components-product-details__nemokama-sveikinimo-kortel):not([hidden]){display:block!important;box-sizing:border-box;min-width:0;max-width:100%;margin:8px 0!important;padding:13px;border:1px solid var(--wp--preset--color--line,#E3DED4);border-radius:10px;background:rgba(255,255,255,.35);box-shadow:none;text-align:left;white-space:normal}
body :is(.wc-block-components-product-details__nemokama-sveikinimo-kortelė,.wc-block-components-product-details__nemokama-sveikinimo-kortel)>.wc-block-components-product-details__name{display:flex!important;align-items:center;gap:8px;margin:0 0 7px;color:var(--wp--preset--color--brand,#314E40);font-size:12px;font-weight:500;line-height:1.5}
body :is(.wc-block-components-product-details__nemokama-sveikinimo-kortelė,.wc-block-components-product-details__nemokama-sveikinimo-kortel)>.wc-block-components-product-details__name::before{content:'';flex:0 0 17px;height:17px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
body :is(.wc-block-components-product-details__nemokama-sveikinimo-kortelė,.wc-block-components-product-details__nemokama-sveikinimo-kortel)>.wc-block-components-product-details__value{display:flex!important;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;width:100%}
body :is(.wc-block-components-product-details__nemokama-sveikinimo-kortelė,.wc-block-components-product-details__nemokama-sveikinimo-kortel)>span[aria-hidden]{display:none!important}
body :is(.wc-block-components-product-details__nemokama-sveikinimo-kortelė,.wc-block-components-product-details__nemokama-sveikinimo-kortel) .bz-greeting-cart-preview{box-sizing:border-box;width:100%;margin:2px 0 0;padding:9px 11px;border-left:2px solid #B7C5AD;border-radius:0 4px 4px 0;background:#FAF8F2;color:var(--wp--preset--color--graphite,#242421);font-size:13px;font-weight:400;line-height:1.65;overflow-wrap:anywhere;white-space:normal}
body :is(.wc-block-components-product-details__nemokama-sveikinimo-kortelė,.wc-block-components-product-details__nemokama-sveikinimo-kortel) .bz-greeting-edit-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;max-width:100%;min-height:40px;margin:0;padding:8px 12px!important;border:1px solid #B7C5AD!important;border-radius:7px;background:transparent!important;color:var(--wp--preset--color--brand,#314E40);font-size:12px!important;font-weight:500;line-height:1.5;text-decoration:none!important;white-space:normal;text-align:left;box-shadow:none}
body :is(.wc-block-components-product-details__nemokama-sveikinimo-kortelė,.wc-block-components-product-details__nemokama-sveikinimo-kortel) .bz-greeting-edit-link::before{content:'+';font-size:18px;font-weight:400;line-height:1}
body :is(.wc-block-components-product-details__nemokama-sveikinimo-kortelė,.wc-block-components-product-details__nemokama-sveikinimo-kortel) .bz-greeting-cart-preview~.bz-greeting-edit-link{padding:4px 0!important;border-color:transparent!important;min-height:36px;text-decoration:underline!important;text-underline-offset:3px}
body :is(.wc-block-components-product-details__nemokama-sveikinimo-kortelė,.wc-block-components-product-details__nemokama-sveikinimo-kortel) .bz-greeting-cart-preview~.bz-greeting-edit-link::before{content:'';width:14px;height:14px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m15 5 4 4M4 20l4-1L20 7a2.8 2.8 0 0 0-4-4L4 15v5Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
body :is(.wc-block-components-product-details__nemokama-sveikinimo-kortelė,.wc-block-components-product-details__nemokama-sveikinimo-kortel) .bz-greeting-edit-link:hover{background:#EAF0E8!important}
body :is(.wc-block-components-product-details__nemokama-sveikinimo-kortelė,.wc-block-components-product-details__nemokama-sveikinimo-kortel) .bz-greeting-edit-link:focus-visible{outline:2px solid var(--wp--preset--color--brand,#314E40);outline-offset:3px}

/* Custom-builder children keep their greeting on the parent set only. */
body :is(.wp-block-woocommerce-cart,.wc-block-mini-cart__drawer,.wp-block-woocommerce-checkout) .bz-gift-cart-child :is(.wc-block-components-product-details__nemokama-sveikinimo-kortelė,.wc-block-components-product-details__nemokama-sveikinimo-kortel){display:none!important}

/* Saved cards share the same preview/edit actions in cart, drawer and checkout. */
body :is(.wc-block-components-product-details__nemokama-sveikinimo-kortelė,.wc-block-components-product-details__nemokama-sveikinimo-kortel)>.wc-block-components-product-details__value{flex-direction:row;flex-wrap:wrap;align-items:center;column-gap:18px;row-gap:4px}
body :is(.wc-block-components-product-details__nemokama-sveikinimo-kortelė,.wc-block-components-product-details__nemokama-sveikinimo-kortel) .bz-greeting-cart-preview{flex:0 1 100%;min-width:0}
body .bz-greeting-view-link{display:inline-flex;align-items:center;gap:7px;box-sizing:border-box;max-width:100%;min-height:36px;margin:0;padding:4px 0;color:var(--wp--preset--color--brand,#314E40);font-family:inherit;font-size:12px!important;font-weight:500;line-height:1.5;text-decoration:underline!important;text-underline-offset:3px;white-space:normal;cursor:pointer}
body .bz-greeting-view-link::before{content:'';flex:0 0 15px;width:15px;height:15px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
body .bz-greeting-view-link:focus-visible{outline:2px solid var(--wp--preset--color--brand,#314E40);outline-offset:3px}
body .bz-greeting-view-link[aria-busy=true]{cursor:progress;text-decoration:none!important}
.bz-greeting-preview-list{display:grid;gap:12px;margin-top:18px}
.bz-greeting-preview-list__card{padding:14px;border:1px solid var(--wp--preset--color--line,#E3DED4);border-radius:8px}
.bz-greeting-preview-list__card p{margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6}
.bz-greeting-preview-list__button{min-height:40px;padding:6px 0;background:none;border:0;color:var(--wp--preset--color--brand,#314E40);font:inherit;font-size:13px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
