/* Group overview and recipient subview, based on the approved Step-1 frames. */
.fgs-design [hidden]{display:none!important}
.design-step1 .design-groups .design-card-price{font-size:16px}
.design-step1 .design-groups .design-card-top{gap:12px}
.design-step1 .design-groups .design-card-address{min-height:0}
.design-step1 .design-groups .design-card-budget p{margin:0;font-size:14px;line-height:1.45}
.design-step1 .design-groups .design-card-budget .design-card-price{font-size:16px;font-weight:600}
.group-card-divider{display:block;flex:none}.group-card-recipients{display:flex;flex-direction:column;gap:4px}
.group-card-recipients>strong{font:600 16px/22px Inter}
.group-card-recipients>p{font:400 14px/1.45 Inter;margin:0}
.group-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.group-card-actions .fgs-btn{padding:0 20px;height:36px;min-height:36px;font-size:12px;white-space:nowrap}
.design-step1.group-recipient-view .fgs-shell{padding-bottom:48px}
.group-recipient-panel{max-width:1100px;margin:0!important}
.group-recipient-content{display:flex;flex-direction:column;gap:24px}
.group-recipient-content>a{align-self:flex-start}
.group-recipient-intro h1{font:600 24px/normal Inter;margin:0 0 8px;color:#585857}
.group-recipient-intro p{font:400 14px/1.45 Inter;margin:0}
.group-recipient-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.group-recipient-search{background:white;border:1px solid #dedede;border-radius:999px;height:48px;display:flex;align-items:center;gap:8px;padding:0 16px;width:420px;max-width:100%;margin:0}
.group-recipient-search img{width:20px;height:20px;flex:none}
.fgs-design .group-recipient-search input{border:0;box-shadow:none;background:transparent;padding:0;min-width:0;width:100%;height:44px;outline-offset:3px}
.group-add-wrap{position:relative}.group-add-menu{position:absolute;right:0;top:44px;padding:12px;background:#fff;border-radius:12px;box-shadow:0 2px 12px #0003;z-index:5;width:220px;display:flex;flex-direction:column;gap:8px}
.group-bulk{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.group-recipient-table-wrap{border:2px solid #dedede;border-radius:8px;background:#fff;overflow:auto}
.group-recipient-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:710px;font:400 14px/22px Inter;color:#585857}
.group-recipient-table th,.group-recipient-table td{padding:10px;vertical-align:middle;text-align:left;border-bottom:1px solid #dedede;overflow-wrap:anywhere;height:42px}
.group-recipient-table th{font-weight:600;background:#f6f6f6;border:0}
.group-recipient-table th:first-child{width:44px}.group-recipient-table th:nth-child(2){width:27%}.group-recipient-table th:last-child{width:220px;text-align:right;padding-right:22px}
.group-recipient-table td:last-child{text-align:right;padding-right:22px}.group-recipient-table tr:last-child td{border-bottom:0}
/* Figma 2198:12767: 16px checkbox, 3px radius; block layout avoids baseline offset. */
.fgs-design .group-recipient-table input[type=checkbox]{appearance:none;display:block;width:16px;height:16px;min-height:0;padding:0;margin:0;border:1px solid #dedede;border-radius:3px;background:#fff;box-shadow:none;cursor:pointer}
.fgs-design .group-recipient-table input[type=checkbox]:checked{background:#fff url('figma-recipient-check.svg') center no-repeat;border-color:#00a1b0}
.fgs-design .group-recipient-table input[type=checkbox]:indeterminate{background:#00a1b0 linear-gradient(#fff,#fff) center/8px 2px no-repeat;border-color:#00a1b0}
.fgs-design .group-recipient-table input[type=checkbox]:focus-visible{outline:2px solid #00a1b0;outline-offset:3px}

.group-row-actions .design-recipient-action{display:inline-flex;width:20px;height:20px;border-radius:50%;background:#bdccce;align-items:center;justify-content:center;vertical-align:middle;margin-right:16px}
.group-move-link{font:600 13px/22px Inter;color:#8da8ab;background:none;border:0;padding:0;cursor:pointer}
.group-inline-row input{width:100%;height:48px;border:1px solid #dedede;border-radius:999px;padding:0 16px;font:400 14px/1.45 Inter;min-width:0}
.group-inline-actions{white-space:nowrap}.group-inline-actions .fgs-btn{height:36px;min-height:36px;padding:0 16px;font-size:12px;margin-left:8px}
.group-inline-form{padding:0!important;margin:0!important;border:0!important;background:none!important;min-height:0}
.group-pagination{display:flex;justify-content:space-between;gap:16px;align-items:center;font-size:14px}.group-pagination nav{display:flex;gap:8px;flex-wrap:wrap}.group-page{width:32px;height:32px;border:0;border-radius:50%;background:#ffffff80;color:#585857;cursor:pointer}.group-page[aria-current]{background:#fff;color:#00a1b0;font-weight:700}
.group-list-empty{margin:0;font-size:14px}.group-move-help{font-size:14px;line-height:1.45}
#group-move-dialog form{display:flex;flex-direction:column;gap:20px}#group-move-dialog label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600}#group-move-dialog select{width:100%;height:48px;border:1px solid #dedede;border-radius:999px;padding:0 16px;background:#fff;font:400 14px Inter}#group-move-dialog p{margin:0}
.group-preview-table{width:100%;border:1px solid #dedede;border-radius:8px;border-spacing:0;font:400 14px/22px Inter}.group-preview-table th,.group-preview-table td{padding:10px;text-align:left;border-bottom:1px solid #dedede}.group-preview-table th{font-weight:600;background:#f6f6f6}.group-preview-table tr:last-child td{border-bottom:0}.group-import-review{display:flex;flex-direction:column;gap:12px}.group-import-review p,.group-import-review h3{margin:0}.group-import-review .fgs-actions{margin-top:20px}
@media(max-width:650px){.group-recipient-content{gap:20px}.group-recipient-toolbar{align-items:stretch}.group-recipient-search{width:100%}.group-card-actions .fgs-btn{padding:0 16px}.group-recipient-panel{max-width:100%}}

.design-step1.group-recipient-view .fgs-shell{width:100%}
.group-recipient-content .fgs-btn,.group-card-actions .fgs-btn{font-family:Inter;font-weight:600;text-transform:uppercase}
.group-recipient-content .fgs-btn.primary,.group-card-actions .fgs-btn.primary{background:#00a1b0;color:#fff}

.design-step1 .design-groups .fgs-row{overflow:hidden}

/* All group cards follow the tallest content, including across wrapped rows. */
.design-step1 .design-groups>.fgs-list{display:grid;grid-template-columns:repeat(auto-fill,400px);grid-auto-rows:1fr;align-items:stretch}
.design-step1 .design-groups .fgs-row{display:flex;width:100%;min-width:0}
.design-step1 .design-groups .fgs-row-main{flex:1}
.design-step1 .design-groups .group-card-divider{margin-top:auto;width:100%;height:1px}
@media(max-width:900px){.design-step1 .design-groups>.fgs-list{grid-template-columns:repeat(2,minmax(0,1fr))}.design-step1 .design-groups .fgs-row{width:100%}}
@media(max-width:650px){.design-step1 .design-groups>.fgs-list{grid-template-columns:minmax(0,1fr)}}

/* Override the original row centering so the main column fills the card. */
.design-step1 .design-groups .fgs-row{align-items:stretch}

/* Let the overview use the available page width instead of Builder's 1120px shell. */
.design-step1 .fgs-shell{width:100%}

/* Consistent Figma grey for group overview copy, including legacy paragraph styles. */
.design-step1 .design-groups :is(h2,p,strong,small,.fgs-link,.design-group-title),
.design-step1 .design-groups .design-card-address,
.design-step1 .fgs-shell>.fgs-footnote{color:#585857}

/* Group names retain the established turquoise accent. */
.design-step1 .design-groups .design-group-title{color:#00a1b0}

/* Single-recipient delete alongside edit and move. */


/* Consistent circular row actions: edit, move and delete. */
.fgs-design .group-row-actions{white-space:nowrap}
.fgs-design .group-row-actions .design-recipient-action{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;min-height:20px;padding:0;border:0;border-radius:50%;background:#bdccce;cursor:pointer;text-decoration:none;vertical-align:middle;margin:0 0 0 8px;box-shadow:none}
.fgs-design .group-row-actions .design-recipient-action:first-child{margin-left:0}
.fgs-design .group-row-actions .design-recipient-action:hover{background:#9bb7ba}

/* Reserve the bulk-action slot so selecting rows never moves the table. */
.group-recipient-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-left:auto}
.group-recipient-toolbar-actions .group-bulk{flex-wrap:nowrap;white-space:nowrap}
.group-recipient-toolbar-actions .group-bulk>span{min-width:56px;text-align:right}
.fgs-design .group-recipient-toolbar-actions .group-bulk[hidden]{display:flex!important;visibility:hidden;pointer-events:none}
@media(max-width:1100px){.group-recipient-toolbar .group-recipient-search{flex:1 1 220px;width:auto}.group-recipient-toolbar-actions{flex-shrink:0;max-width:100%}}
@media(max-width:650px){.group-recipient-toolbar .group-recipient-search{flex-basis:100%;width:100%}.group-recipient-toolbar-actions{width:100%}}

/* Shared recipient pagination: previous/next chevrons from existing Figma assets. */
.fgs-design .group-pagination .group-page-arrow{display:inline-flex;align-items:center;justify-content:center;padding:0;background:transparent}
.group-page-arrow img{display:block;width:20px;height:20px}
.group-page-previous img{transform:rotate(180deg)}
.fgs-design .group-pagination .group-page-arrow:disabled{opacity:.35;cursor:default}

/* In-flow list navigation: count, pagination and the primary return action. */
.fgs-design .group-pagination{flex-wrap:wrap}
.fgs-design .group-pagination>nav{margin-left:auto}
.fgs-design .group-pagination>nav:empty{display:none}
/* Keep finishing the list visually separate from adding a recipient. */
.fgs-design .group-recipient-finish{display:flex;justify-content:flex-end;margin-top:48px;padding-top:24px;border-top:1px solid #bdccce}
.fgs-design .group-recipient-finish .group-recipient-done{white-space:nowrap}

/* Compact shared card rhythm: facts, optional address, one footer row. */
.design-step1 .design-groups .fgs-row-main{gap:12px}
.design-step1 .design-groups .design-card-top{gap:8px}
.design-step1 .design-groups .group-card-recipients{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;min-height:36px;flex-wrap:wrap}
.design-step1 .design-groups .group-card-recipients>strong{font:600 14px/22px Inter}
.design-step1 .design-groups .group-card-actions{margin-top:0}

.design-step1 .design-groups .group-card-recipients.has-recipients{flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-height:44px}
.design-step1 .design-groups .design-recipient-link{font:600 13px/20px Inter,sans-serif;color:#007c89!important;text-decoration:underline;text-underline-offset:3px}
.design-step1 .design-groups .design-recipient-link:hover{color:#005f69!important}
