/* Collection tools share one touch target and never compete with the close button. */
.woocommerce-account .ta-collection-view__dialog{width:min(780px,100%);max-height:calc(100dvh - 80px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 24px 22px;background:#fff}
.woocommerce-account .ta-collection-view__header{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:14px 12px;align-items:center;padding:22px 0 16px;margin:0;background:#fff}
.woocommerce-account .ta-collection-view__title{grid-column:1;grid-row:1;min-width:0}
.woocommerce-account .ta-collection-view__title h2{margin:5px 0 0;padding:0;font-size:23px;line-height:1.3;overflow-wrap:anywhere;letter-spacing:-.02em}
.woocommerce-account .ta-collection-view__header>.ta-collection-modal__close{position:static;grid-column:2;grid-row:1;align-self:start;margin:0}
.woocommerce-account .ta-collection-view__actions{display:flex;grid-column:1/-1;align-items:center;justify-content:space-between;width:100%;gap:12px}
.woocommerce-account .ta-collection-view__count{padding:7px 10px;border:1px solid #e1e8df;border-radius:8px;background:#f7f5ef;color:#66776a;font-size:12px;white-space:nowrap}
.woocommerce-account .ta-collection-view__delete-wrap{display:flex;position:relative;gap:8px}
.woocommerce-account :is(.ta-collection-tool,.ta-collection-modal__close){display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-width:44px;padding:0;border:1px solid #dfe7df;border-radius:11px;background:#f7f5ef;color:#426e5a;cursor:pointer;font-size:0;line-height:1}
.woocommerce-account :is(.ta-collection-tool,.ta-collection-modal__close):hover{background:#eaf2eb;border-color:#bdd8c6}
.woocommerce-account .ta-collection-view__delete:hover{border-color:#e5b8b4;background:#fff1ed;color:#a43c31}
.woocommerce-account .ta-collection-modal__dialog:not(.ta-collection-view__dialog)>h2{padding-right:48px;min-height:44px;display:flex;align-items:center}
.woocommerce-account :is(.ta-collection-rename-popover,.ta-collection-delete-popover){top:calc(100% + 8px);right:0;z-index:6;width:280px;max-width:calc(100vw - 66px);padding:16px;border:1px solid #dbe4d8;border-radius:14px;background:#fff;box-shadow:0 12px 36px #23392d26}
.woocommerce-account :is(.ta-collection-rename-popover,.ta-collection-delete-popover) button{min-height:42px;padding:9px 12px;border-radius:9px;font-size:12px;font-weight:600}
.woocommerce-account .ta-collection-rename-popover label{font-size:12px}
.woocommerce-account .ta-collection-rename-popover input{min-height:46px;margin:4px 0 0;font-size:16px;border-radius:9px}
.woocommerce-account .ta-collection-delete-popover>span{font-size:12px;line-height:1.6;margin:8px 0 12px}
.woocommerce-account .ta-collection-download-bar{padding:16px 0 12px;margin:0;gap:8px}
.woocommerce-account .ta-collection-download-all{border-radius:10px;background:#2c8d7a;border-color:#2c8d7a}
.woocommerce-account .ta-collection-view__dialog .ta-collection-view__search{flex:none;height:46px;margin:0 0 14px!important;border-color:#dfe7df;border-radius:10px;background:#fafbf8}
.woocommerce-account .ta-collection-view__products{display:grid;gap:9px;max-height:none;overflow:visible;margin:0}
.woocommerce-account .ta-collection-product{display:grid;grid-template-columns:48px minmax(0,1fr) auto 44px;align-items:center;gap:12px;padding:12px;border:1px solid #e0e7df;border-radius:12px;background:#fff}
.woocommerce-account .ta-collection-product img{grid-column:1;width:48px;height:58px;object-fit:contain;border:1px solid #eef0e9;border-radius:7px}
.woocommerce-account .ta-collection-product__name{grid-column:2;min-width:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.woocommerce-account .ta-collection-product__remove{grid-column:4;grid-row:1;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #e4e9e1;border-radius:10px;background:#f7f5ef;color:#738474}
.woocommerce-account .ta-collection-product__remove:hover{color:#a43c31;border-color:#e5b8b4;background:#fff1ed}
.woocommerce-account .ta-collection-product__download{grid-column:3;grid-row:1;justify-content:center;min-height:44px;padding:10px;border-radius:9px;font-size:12px}
.woocommerce-account .ta-collection-view__dialog :is(button,a,input):focus-visible{outline:2px solid #2c8d7a;outline-offset:3px}
@media(max-width:575.98px){
 .woocommerce-account .ta-collection-modal{padding:10px;place-items:stretch;align-items:center}
 .woocommerce-account .ta-collection-view__dialog{width:100%;max-height:100%;padding:0 15px 16px;border-radius:16px;overflow-y:auto}
 .woocommerce-account .ta-collection-view__header{gap:10px 8px;padding:16px 0 12px}
 .woocommerce-account .ta-collection-view__title h2{font-size:21px}
 .woocommerce-account .ta-collection-view__eyebrow{font-size:10px}
 .woocommerce-account .ta-collection-download-bar{padding:12px 0}
 .woocommerce-account .ta-collection-download-bar>span{display:none}
 .woocommerce-account .ta-collection-product{grid-template-columns:42px minmax(0,1fr) 44px;gap:9px;padding:10px}
 .woocommerce-account .ta-collection-product img{width:42px;height:52px;grid-row:1}
 .woocommerce-account .ta-collection-product__name{font-size:12px}
 .woocommerce-account .ta-collection-product__remove{grid-column:3;grid-row:1}
 .woocommerce-account .ta-collection-product__download{grid-column:2/4;grid-row:2;background:#f0f6ef}
}

@media(max-width:575.98px){.woocommerce-account .ta-collection-view__header:has([data-ta-rename-collection-popover]:not([hidden]),[data-ta-delete-collection-popover]:not([hidden])){position:relative}}
