/* Shared TGS product controls - WooCommerce singles, archives, TGS app and member lists. */
.tgs-product-actions,.tgs-product-actions *{box-sizing:border-box}
.tgs-product-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;width:min(100%,380px);max-width:380px;margin:5px 0;isolation:isolate}
.tgs-product-actions .tgs-product-action{appearance:none!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0!important;min-height:40px;padding:4px 3px!important;background:#fffdf8!important;color:#275b59!important;border:1px solid #d8e4df!important;border-radius:7px!important;box-shadow:none!important;font-family:inherit!important;font-size:11px!important;line-height:1.1!important;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.tgs-product-actions .tgs-product-action:hover{background:#f0f8f5!important;border-color:#9bc5ba!important;transform:translateY(-1px)}
.tgs-product-actions .tgs-product-action:focus-visible{outline:3px solid #dfad56!important;outline-offset:2px}
.tgs-product-actions .tgs-product-action.is-on,.tgs-product-actions .tgs-product-action[aria-pressed="true"]{background:#e9f5f0!important;border-color:#89bcb0!important;color:#125b50!important}
.tgs-product-actions .tgs-product-action[aria-pressed="true"] svg{fill:#c4775e;stroke:#bd624d}
.tgs-product-actions .tgs-product-action.is-busy{opacity:.6;cursor:wait}
.tgs-product-actions .tgs-product-action svg{display:block;width:15px!important;height:15px!important;flex:none}
.tgs-product-actions .tgs-action-label{white-space:normal;font-weight:650;text-align:center;overflow:visible;text-overflow:clip;max-width:100%;overflow-wrap:normal;word-break:normal}
.tgs-product-actions-section{margin:18px 0 20px;clear:both}
.tgs-product-actions-heading{font-size:1.05rem!important;margin:0 0 8px!important;color:#245954!important;font-weight:650!important}
.tgs-product-actions--compact{gap:5px;max-width:380px;margin:5px 0}
.tgs-product-actions--compact .tgs-product-action{font-size:11px!important;min-height:40px;padding:4px 3px!important;border-radius:7px!important}
.tgs-product-actions--compact .tgs-product-action svg{width:15px!important;height:15px!important}
.tgs-catalog-product-actions .tgs-product-actions{margin:2px 0 8px}
.tgs-curated-item-info .tgs-product-actions{margin:5px 0;max-width:380px}
.tgs-product-dialog-back{position:fixed;inset:0;z-index:999999;background:rgba(14,30,30,.61);display:flex;align-items:center;justify-content:center;padding:16px}
.tgs-product-dialog{background:#fffdfa;border-radius:18px;width:min(100%,470px);max-height:min(88vh,680px);display:flex;flex-direction:column;box-shadow:0 18px 70px rgba(0,0,0,.28);color:#223f3b;overflow:hidden}
.tgs-product-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px 12px;border-bottom:1px solid #e8ebe5}
.tgs-product-dialog h2{font-family:inherit;font-size:23px!important;margin:0!important;line-height:1.25;color:#184d49}
.tgs-product-dialog header button{border:0;background:transparent;color:#184d49;font-size:30px;cursor:pointer}
.tgs-product-dialog-content{overflow:auto;padding:18px 22px 22px}
.tgs-product-dialog-subtitle{font-weight:600;line-height:1.4;margin:0 0 16px}
.tgs-product-dialog fieldset{border:0;padding:0;margin:0 0 12px;max-height:210px;overflow:auto}
.tgs-product-dialog legend{font-size:14px;font-weight:700;margin-bottom:7px}
.tgs-product-destination{display:flex;gap:12px;align-items:center;background:#f3f8f5;border:1px solid #e1ece6;border-radius:8px;padding:10px;margin-bottom:7px;cursor:pointer}
.tgs-product-create-label{display:flex;flex-direction:column;gap:6px;margin-top:14px;font-weight:600;font-size:14px}
.tgs-product-create-label input{width:100%;min-height:42px;border:1px solid #aec8c1;border-radius:8px;padding:9px!important;background:white;color:#223f3b}
.tgs-product-dialog footer{display:flex;justify-content:end;gap:9px;padding:14px 22px;border-top:1px solid #e8ebe5}
.tgs-product-dialog footer button{border-radius:9px;padding:10px 17px;cursor:pointer;border:1px solid #abc8be}
.tgs-product-dialog .tgs-product-save{background:#127b72;color:white;border-color:#127b72}
#tgs-product-action-notice{position:fixed;z-index:1000000;right:15px;bottom:24px;max-width:min(94vw,370px);display:grid;gap:6px}
.tgs-product-toast{background:#174e49;color:white;border-radius:10px;padding:12px 16px;box-shadow:0 6px 22px rgba(0,0,0,.18);font-size:14px}
.tgs-product-toast.is-error{background:#80352d}
.tgs-product-login-link{display:block;background:#fff;padding:9px;border-radius:7px}
.tgs-home-fav-wrap .tgs-product-actions{margin:5px 0 0}
@media(max-width:450px){.tgs-product-actions{gap:4px}.tgs-product-actions .tgs-product-action{min-height:40px;padding:4px 2px!important;font-size:10px!important}.tgs-product-actions .tgs-product-action svg{width:15px!important;height:15px!important}.tgs-product-dialog-back{align-items:end;padding:0}.tgs-product-dialog{max-height:92vh;width:100%;border-radius:20px 20px 0 0}}

/* Mini member-profile previews retain their existing card layout while acquiring actions. */
.tgs-bp-action-wrap{min-width:0}
.tgs-overview-faves>.tgs-bp-action-wrap>a{display:flex;gap:10px;padding:11px;border:1px solid #eee3d4;border-radius:14px;background:#fff;color:#33464b!important;text-decoration:none!important;min-width:0;align-items:center}
.tgs-overview-wishlist-grid>.tgs-bp-action-wrap>.tgs-overview-wish{width:100%}
.tgs-bp-action-wrap>.tgs-product-actions{margin:5px 0 12px}
.tgs-bp-action-wrap>.tgs-product-actions .tgs-product-action{min-height:40px}
.tgs-catalog-admin-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px}

.tgs-product-actions .tgs-product-action--shelly{grid-column:1/-1;min-height:39px!important;flex-direction:row!important;gap:7px;background:#fff3d6!important;border-color:#eed4a4!important;color:#70522c!important;font-size:12px!important;padding:8px 10px!important}
.tgs-product-actions .tgs-product-action--shelly svg{width:18px!important;height:18px!important}

/* v1.3.32: Catalog card's old THREE-column outer grid squeezed the FOUR-button
   action bar into a single 1/3-width cell. Give actions a full row. */
.tgs70 .tgs-catalog-card-copy .tgs-catalog-product-actions {
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    width:100%!important;min-width:0;gap:12px!important;
}
.tgs70 .tgs-catalog-card-copy .tgs-catalog-product-actions > .tgs-product-actions {
    width:min(100%,380px)!important;max-width:380px!important;grid-column:1/-1;
    margin:0!important;justify-self:stretch;
}
.tgs70 .tgs-catalog-card-copy .tgs-catalog-product-actions > .tgs-catalog-admin-actions {
    display:flex!important;align-items:center;justify-content:flex-start;
    flex-wrap:wrap;gap:9px!important;width:100%;min-width:0;
    padding-top:11px;border-top:1px solid #e5ece7;
}
.tgs70 .tgs-catalog-card-copy .tgs-catalog-admin-actions > button {
    flex:0 1 auto;max-width:100%;white-space:normal!important;line-height:1.25;
}
/* Never truncate action labels in shortlists, registry rows, profiles or Woo cards. */
.tgs-product-actions .tgs-product-action .tgs-action-label {
    white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
    max-width:100%;word-break:normal;overflow-wrap:normal;
}
/* Accessible and mobile-friendly share choice dialog. */
.tgs-share-dialog-back{position:fixed;inset:0;z-index:1000001;display:flex;align-items:center;justify-content:center;background:rgba(14,30,30,.61);padding:16px}
.tgs-share-dialog{width:min(100%,480px);max-height:90vh;overflow:auto;box-sizing:border-box;background:#fffdfa;border-radius:18px;padding:23px;box-shadow:0 18px 70px rgba(0,0,0,.28);color:#203e3b}
.tgs-share-dialog *{box-sizing:border-box}
.tgs-share-dialog header{display:flex;align-items:start;justify-content:space-between;gap:14px;margin-bottom:8px}
.tgs-share-dialog h2{font-family:inherit!important;font-weight:700!important;font-size:23px!important;line-height:1.25!important;margin:0!important;color:#184d49}
.tgs-share-dialog .tgs-share-close{appearance:none;background:transparent!important;color:#184d49!important;border:0!important;cursor:pointer;font-size:27px;line-height:1;padding:1px 5px!important}
.tgs-share-description{margin:0 0 15px;font-size:14px;line-height:1.5;color:#526764}
.tgs-share-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tgs-share-choices button{appearance:none;display:flex;gap:11px;align-items:center;justify-content:flex-start;min-height:52px;cursor:pointer;background:#fff!important;color:#215c56!important;border:1px solid #d5e2dc!important;border-radius:11px!important;padding:11px 12px!important;font-family:inherit!important;font-weight:650!important;font-size:14px!important;line-height:1.2!important;text-align:left;box-shadow:none!important}
.tgs-share-choices button:hover{background:#edf7f1!important;border-color:#91b8aa!important}
.tgs-share-choices button:focus-visible,.tgs-share-close:focus-visible{outline:3px solid #dfad56!important;outline-offset:2px}
.tgs-share-choices .tgs-share-ico{font-family:Arial,sans-serif;font-weight:750;font-size:19px;display:flex;justify-content:center;align-items:center;width:27px;height:27px;flex:none}
.tgs-share-choices .tgs-share-ico svg{width:21px;height:21px}
.tgs-share-choices .tgs-share-ico--instagram{color:#b73577}
.tgs-share-hint{font-size:12px;line-height:1.45;color:#576b67;margin:15px 0 0}
@media(max-width:450px){.tgs-share-dialog-back{align-items:flex-end;padding:0}.tgs-share-dialog{border-radius:18px 18px 0 0;max-height:92vh;padding:20px}.tgs-share-choices{gap:9px}.tgs-share-choices button{padding:10px!important}}

/* v1.3.33 — TGS registry / wishlist / shared-list product actions.
   The gift's image, title and claim/edit controls stay on the first row;
   the four product actions get their OWN full-width row underneath. */
.tgs70 .tgs-list-detail-flow {display:block!important;min-width:0;width:100%}
.tgs70 .tgs-list-detail-gifts {width:100%;min-width:0}
.tgs70 .tgs-list-detail-aside {margin-top:26px;max-width:100%;min-width:0}
.tgs70 .item-row.tgs-list-gift-row {
  display:grid!important;
  grid-template-columns:110px minmax(0,1fr) minmax(180px,240px)!important;
  align-items:start!important;
  column-gap:18px!important;
  row-gap:12px!important;
  width:100%;min-width:0;
  padding:22px 0!important;
}
.tgs70 .tgs-list-gift-row>.media {grid-column:1;grid-row:1;align-self:start}
.tgs70 .tgs-list-gift-row>.tgs-list-gift-info {grid-column:2;grid-row:1;min-width:0;overflow-wrap:break-word}
.tgs70 .tgs-list-gift-info h4 {max-width:none!important;overflow-wrap:break-word}
.tgs70 .tgs-list-gift-row>.tgs-list-gift-management {
  grid-column:3;grid-row:1;min-width:0;max-width:240px!important;
  justify-content:flex-start!important;align-content:start;align-items:center;
}
.tgs70 .tgs-list-gift-management .tgs-registry-fulfillment {flex:0 0 100%}
.tgs70 .tgs-list-gift-row>.tgs-list-gift-product-actions {
  grid-column:1/-1;grid-row:2;min-width:0;width:100%;
  margin:0;padding:0;
}
.tgs70 .tgs-list-gift-product-actions>.tgs-product-actions,
.tgs70 .tgs-shopping-item-product-actions>.tgs-product-actions,
.tgs70 .tgs-curated-item-info>.tgs-product-actions {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  width:min(100%,380px)!important;
  max-width:380px!important;
  margin:0!important;
}
.tgs70 .tgs-list-gift-product-actions .tgs-product-action,
.tgs70 .tgs-shopping-item-product-actions .tgs-product-action,
.tgs70 .tgs-curated-item-info .tgs-product-action {
  min-height:40px!important;padding:4px 3px!important;
  gap:3px!important;font-size:11px!important;
  width:100%;min-width:0!important;
}
.tgs70 .tgs-list-gift-product-actions .tgs-product-action svg,
.tgs70 .tgs-shopping-item-product-actions .tgs-product-action svg,
.tgs70 .tgs-curated-item-info .tgs-product-action svg {width:15px!important;height:15px!important}
/* Also keep catalog-derived wishlists in the same consistent, full-width row. */
.tgs70 .tgs-shopping-item {display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;align-items:start!important}
.tgs70 .tgs-shopping-item-info {grid-column:1;min-width:0}
.tgs70 .tgs-shopping-item-management {grid-column:2;min-width:0}
.tgs70 .tgs-shopping-item-product-actions {grid-column:1/-1;min-width:0;width:100%}
/* Shortlist collections are full-width product rows, not two tiny columns. */
.tgs70 .tgs-curated-products {grid-template-columns:1fr!important}
.tgs70 .tgs-curated-item-info {min-width:0;width:100%}
.tgs70 .tgs-curated-item-info>.tgs-product-actions {margin:12px 0!important}
@media(max-width:760px) {
  .tgs70 .item-row.tgs-list-gift-row {
    grid-template-columns:84px minmax(0,1fr)!important;
    column-gap:14px!important;row-gap:12px!important;
  }
  .tgs70 .tgs-list-gift-row>.media {grid-column:1;grid-row:1;width:84px}
  .tgs70 .tgs-list-gift-row>.tgs-list-gift-info {grid-column:2;grid-row:1}
  .tgs70 .tgs-list-gift-row>.tgs-list-gift-management {
    grid-column:1/-1!important;grid-row:2!important;max-width:none!important;
    justify-content:flex-start!important;
  }
  .tgs70 .tgs-list-gift-row>.tgs-list-gift-product-actions {grid-row:3!important;grid-column:1/-1!important}
  .tgs70 .tgs-shopping-item {grid-template-columns:1fr!important}
  .tgs70 .tgs-shopping-item-info,.tgs70 .tgs-shopping-item-management,.tgs70 .tgs-shopping-item-product-actions {grid-column:1!important}
}
@media(max-width:380px) {
  .tgs70 .tgs-list-gift-product-actions>.tgs-product-actions,
  .tgs70 .tgs-shopping-item-product-actions>.tgs-product-actions,
  .tgs70 .tgs-curated-item-info>.tgs-product-actions {gap:5px!important}
  .tgs70 .tgs-list-gift-product-actions .tgs-product-action,
  .tgs70 .tgs-shopping-item-product-actions .tgs-product-action,
  .tgs70 .tgs-curated-item-info .tgs-product-action {
    min-height:40px!important;gap:2px!important;padding:4px 1px!important;font-size:9.5px!important;
  }
}

/* v1.3.36 — small four-across product actions everywhere the shared bar is used.
   The fifth admin-only Shelly action retains its horizontal layout. */
.tgs-product-actions {grid-template-columns:repeat(4,minmax(0,1fr))!important;max-width:380px!important;gap:5px!important}
.tgs-product-actions .tgs-product-action:not(.tgs-product-action--shelly) {
  min-height:40px!important;height:auto!important;
  padding:4px 3px!important;gap:3px!important;
  border-radius:7px!important;font-size:11px!important;line-height:1.1!important;
}
.tgs-product-actions .tgs-product-action:not(.tgs-product-action--shelly) svg {width:15px!important;height:15px!important}
.tgs70 .tgs-list-gift-product-actions>.tgs-product-actions,
.tgs70 .tgs-shopping-item-product-actions>.tgs-product-actions,
.tgs70 .tgs-curated-item-info>.tgs-product-actions,
.tgs70 .tgs-catalog-card-copy .tgs-catalog-product-actions>.tgs-product-actions {
  width:min(100%,380px)!important;max-width:380px!important;gap:5px!important
}
.tgs70 .tgs-list-gift-product-actions .tgs-product-action:not(.tgs-product-action--shelly),
.tgs70 .tgs-shopping-item-product-actions .tgs-product-action:not(.tgs-product-action--shelly),
.tgs70 .tgs-curated-item-info .tgs-product-action:not(.tgs-product-action--shelly),
.tgs70 .tgs-catalog-card-copy .tgs-product-action:not(.tgs-product-action--shelly) {
  min-height:40px!important;padding:4px 3px!important;gap:3px!important;font-size:11px!important;
}
.tgs70 .tgs-list-gift-product-actions .tgs-product-action:not(.tgs-product-action--shelly) svg,
.tgs70 .tgs-shopping-item-product-actions .tgs-product-action:not(.tgs-product-action--shelly) svg,
.tgs70 .tgs-curated-item-info .tgs-product-action:not(.tgs-product-action--shelly) svg,
.tgs70 .tgs-catalog-card-copy .tgs-product-action:not(.tgs-product-action--shelly) svg {width:15px!important;height:15px!important}
@media(max-width:450px) {
  .tgs-product-actions{gap:4px!important}
  .tgs-product-actions .tgs-product-action:not(.tgs-product-action--shelly){font-size:10px!important;padding:4px 2px!important}
}
