/* InstaDeliveryScheduler Portal Styles
 * Front-end styling for:
 * - Customer portal [ids_portal]
 * - Signup flows
 * - Staff portal [ids_staff_portal]
 *
 * Uses CSS variables so themes can override easily.
 */

:root {
    --ids-bg:             #f7f1e7;
    --ids-bg-soft:        #fffaf2;
    --ids-bg-soft-alt:    #f4eee2;
    --ids-bg-card:        #ffffff;
    --ids-bg-date:        #f2e7d7;
    --ids-border:         #e0d4c2;
    --ids-border-strong:  #c9b79d;

    --ids-text:           #2b2b2b;
    --ids-text-muted:     #7a6f60;
    --ids-text-soft:      #9a907f;

    --ids-accent:         #4a6b63; /* teal */
    --ids-accent-soft:    rgba(74, 107, 99, 0.08);
    --ids-accent-alt:     #c84b00; /* orange */

    --ids-danger:         #c62828;
    --ids-danger-soft:    #fde0e0;
    --ids-warn:           #f57f17;
    --ids-warn-soft:      #fff3cd;

    --ids-radius-lg:      18px;
    --ids-radius-md:      12px;
    --ids-radius-sm:      6px;

    --ids-shadow-soft:    0 12px 35px rgba(0, 0, 0, 0.08);
    --ids-shadow-subtle:  0 1px 4px rgba(0, 0, 0, 0.04);
    --ids-shadow-modal:   0 18px 45px rgba(0, 0, 0, 0.16);
}

/* Base layout
   -------------------------------------------------------------------------- */

.ids-portal,
.ids-staff-portal {
    /* font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; */
    color: var(--ids-text);
    background: linear-gradient(135deg, var(--ids-bg) 0%, #fefaf4 40%, #fff 100%);
    border-radius: var(--ids-radius-lg);
    box-shadow: var(--ids-shadow-soft);
    padding: 22px 22px 26px;
    margin: 24px auto;
    max-width: 1120px;
    box-sizing: border-box;
}

.ids-portal h2,
.ids-portal h3,
.ids-staff-portal h2,
.ids-staff-portal h3 {
    margin: 0 0 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ids-muted {
    color: var(--ids-text-muted);
    font-size: 13px;
}

/* Notices & empty states
   -------------------------------------------------------------------------- */

.ids-notice {
    border-radius: var(--ids-radius-md);
    padding: 12px 14px;
    margin: 14px 0;
    border: 1px solid var(--ids-border);
    background: #fff;
    font-size: 14px;
}

.ids-notice-info {
    border-color: #bbdefb;
    background: #e3f2fd;
    color: #0d47a1;
}

.ids-notice-error {
    border-color: #ffcdd2;
    background: #ffebee;
    color: var(--ids-danger);
}

.ids-notice-success {
    border-color: #c8e6c9;
    background: #e8f5e9;
    color: #2e7d32;
}

.ids-empty-state {
    text-align: center;
    padding: 32px 18px 26px;
    color: var(--ids-text-muted);
}

.ids-empty-state h3 {
    margin: 10px 0 6px;
    font-size: 18px;
}

.ids-empty-icon {
    font-size: 32px;
    line-height: 1;
}

/* Tabs
   -------------------------------------------------------------------------- */

.ids-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--ids-bg-soft-alt);
    border-radius: 999px;
    border: 1px solid var(--ids-border);
    margin-bottom: 18px;
}

.ids-tab {
    border: none;
    background: transparent;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    color: var(--ids-text-muted);
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ids-tab:hover {
    background: rgba(255, 255, 255, 0.75);
}

.ids-tab.active {
    background: #fff;
    color: var(--ids-accent);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.ids-tab-panel {
    background: rgba(255, 255, 255, 0.86);
    border-radius: var(--ids-radius-md);
    border: 1px solid var(--ids-border);
    padding: 18px 16px 16px;
    box-shadow: var(--ids-shadow-subtle);
}

/* Badges & status labels (shared with admin)
   -------------------------------------------------------------------------- */

.ids-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f5f5f5;
    color: var(--ids-text-soft);
}

.ids-status-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ids-status-editable {
    background: #e8f5e9;
    color: #2e7d32;
}

.ids-status-locked {
    background: #e3f2fd;
    color: #1565c0;
}

.ids-status-skipped {
    background: #f5f5f5;
    color: #757575;
}

.ids-status-dispatched {
    background: #fff3e0;
    color: #e65100;
}

.ids-status-delivered {
    background: #f3e5f5;
    color: #6a1b9a;
}

.ids-one-off-tag,
.ids-skipped-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    margin-top: 6px;
    margin-right: 4px;
}

.ids-one-off-tag {
    background: var(--ids-accent-soft);
    color: var(--ids-accent);
}

.ids-skipped-tag {
    background: var(--ids-danger-soft);
    color: var(--ids-danger);
}

/* Buttons
   -------------------------------------------------------------------------- */

.ids-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #f3f3f3;
    color: var(--ids-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, transform 0.05s ease;
}

.ids-btn:hover {
    background: #e6e6e6;
}

.ids-btn:disabled {
    opacity: 0.6;
    cursor: default;
    box-shadow: none;
}

.ids-btn-primary {
    background: #536b75;
    border-color: #536b75;
    color: #fff;
    /*box-shadow: 0 6px 14px rgba(74, 107, 99, 0.35);*/
    outline: none;
    color: #fff;
    box-shadow: none;
}

.ids-btn-primary:hover {
    background: #536b75;
    border-color: #536b75;
    color: #fff;
}

.ids-btn-outline {
    background: transparent;
    border-color: var(--ids-accent);
    color: var(--ids-accent);
}

.ids-btn-outline:hover {
    background: var(--ids-accent-soft);
}

.ids-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--ids-text-muted);
}

.ids-btn-ghost:hover {
    background: rgba(0, 0, 0, 0.03);
}

.ids-btn-danger {
    background: #be9a8b;
    border-color: #be9a8b;
    color: #fff;
    outline: none;
    box-shadow: none;
}

.ids-btn-danger:hover {
    background: #be9a8b;
    color: #fff;
}

.ids-btn-warn {
    background: var(--ids-warn-soft);
    border-color: #fdd835;
    color: #f57f17;
    box-shadow: none;
    outline: none;
}

.ids-btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.ids-btn-full {
    width: 100%;
}

.ids-btn-unskip {
    background: #fff;
    border-color: var(--ids-accent);
    color: var(--ids-accent);
}

.ids-btn-skip {
    background: #faf3f3;
    border-color: #f2b8b8;
    color: var(--ids-danger);
}

/* Deliveries layout
   -------------------------------------------------------------------------- */

.ids-delivery-group {
    background: var(--ids-bg-card);
    border-radius: var(--ids-radius-md);
    border: 1px solid var(--ids-border);
    margin-bottom: 14px;
    overflow: hidden;
}

.ids-delivery-group.is-skipped {
    opacity: 0.62;
    background: #f4f4f4;
}

.ids-delivery-row {
    display: flex;
    gap: 14px;
    padding: 14px 14px 16px;
    flex-wrap: wrap;
}

.ids-delivery-date-col {
    flex: 0 0 220px;
    max-width: 260px;
    padding: 4px 10px 4px 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ids-delivery-date-heading {
    margin: 6px 0 4px;
    font-size: 18px;
}

.ids-cutoff-label {
    margin: 0;
    font-size: 13px;
    color: var(--ids-text-soft);
}

.ids-past-cutoff-notice {
    color: var(--ids-danger);
}

.ids-delivery-total {
    margin: 6px 0 0;
    font-weight: 600;
    color: var(--ids-accent-alt);
}

.ids-delivery-charge-note {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--ids-text-soft);
}

.ids-delivery-actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Add-item tile & product cards
   -------------------------------------------------------------------------- */

.ids-add-item-tile {
    flex: 0 0 180px;
    min-height: 180px;
    border-radius: var(--ids-radius-md);
    border: 1px dashed var(--ids-border-strong);
    background: var(--ids-bg-soft);
    color: var(--ids-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.05s ease;
}

.ids-add-item-tile:hover {
    background: #fff;
    border-color: var(--ids-accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.ids-add-tile-icon {
    font-size: 30px;
    line-height: 1;
}

.ids-add-tile-label {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
}

.ids-product-card {
    flex: 0 0 180px;
    max-width: 200px;
    background: #fff;
    border-radius: var(--ids-radius-md);
    border: 1px solid var(--ids-border);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.ids-product-card.is-skipped {
    opacity: 0.6;
}

.ids-product-image,
.ids-product-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--ids-radius-sm);
    object-fit: cover;
    background: var(--ids-bg-soft);
    display: block;
}

.ids-product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.ids-product-name {
    margin: 8px 0 4px;
    font-size: 14px;
    font-weight: 500;
}

.ids-product-price {
    font-weight: 600;
    color: var(--ids-accent-alt);
    font-size: 14px;
    margin-top: 6px;
}

.ids-product-qty {
    color: var(--ids-text-soft);
    font-weight: 400;
    margin-left: 4px;
}

.ids-product-freq {
    margin: 2px 0 4px;
    font-size: 12px;
    color: var(--ids-text-soft);
}

.ids-subscription-group {
    margin-bottom: 18px;
}

.ids-subscription-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
}

.ids-subscription-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

.ids-subscription-card {
    background: #fff;
    border-radius: var(--ids-radius-md);
    border: 1px solid var(--ids-border);
    padding: 10px;
    text-align: left;
}

.ids-subscription-card.is-paused {
    background: #fffbe8;
}

.ids-subscription-card.is-cancelled {
    opacity: 0.65;
}

.ids-sub-next-delivery {
    font-size: 13px;
    color: var(--ids-text-soft);
    margin: 4px 0;
}

.ids-sub-price {
    font-weight: 600;
    color: var(--ids-accent-alt);
    display: inline-block;
    margin-bottom: 4px;
}

.ids-sub-freq {
    font-size: 12px;
    color: var(--ids-text-soft);
}

.ids-seasonal-notice {
    font-size: 12px;
    color: #2e7d32;
    margin-top: 4px;
}

.ids-date-highlight {
    font-weight: 600;
}

/* Product grid inside modal
   -------------------------------------------------------------------------- */

/*.ids-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 8px;
}*/

.ids-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.ids-product-choice {
    border-radius: var(--ids-radius-md);
    border: 1px solid var(--ids-border);
    padding: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.05s ease;
}

.ids-product-choice:hover {
    border-color: var(--ids-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.ids-product-choice.selected {
    border-color: var(--ids-accent);
    box-shadow: 0 0 0 1px rgba(74, 107, 99, 0.5);
}

.ids-product-choice.unavailable {
    opacity: 0.45;
    cursor: not-allowed;
}

.ids-product-choice img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--ids-radius-sm);
    object-fit: cover;
}

.ids-product-choice-name {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
}

.ids-product-choice-price {
    font-size: 13px;
    color: var(--ids-accent-alt);
}

.ids-product-choice-seasonal {
    font-size: 11px;
    margin-top: 4px;
    color: #2e7d32;
}

.ids-product-choice-variation {
    margin-top: 8px;
}

.ids-product-choice-variation label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--ids-text-muted);
}

.ids-product-variation-select {
    width: 100%;
    min-height: 32px;
    border: 1px solid var(--ids-border);
    border-radius: 6px;
    background: #fff;
}

/* Modals
   -------------------------------------------------------------------------- */

.ids-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(25, 16, 5, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ids-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 720px;
    width: 94%;
    box-shadow: var(--ids-shadow-modal);
    overflow: hidden;
}

.ids-modal-sm {
    max-width: 380px;
}

.ids-modal-header {
    padding: 6px 18px;
    border-bottom: 1px solid var(--ids-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ids-bg-soft-alt);
}

.ids-modal-header h3 {
    margin: 0;
    font-size: 17px;
}

.ids-modal-header .ids-modal-close {
    background: transparent;
    border: none;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    color: var(--ids-text-soft);
    transition: all 0.5s;
    border-radius: 100%;
    font-weight: normal;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}
.ids-modal-header .ids-modal-close:hover {
    border: 1px solid #d9826c;
}

.ids-modal-close {
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--ids-text-soft);
}

.ids-modal-body {
    padding: 16px 18px 18px;
    max-height: 70vh;
    overflow-y: auto;
}

.ids-modal-product-name {
    font-weight: 600;
    margin-bottom: 10px;

    color: #080a0b;
    letter-spacing: 0.6px;
    border-bottom: 1px solid #536b75;
    padding-bottom: 2px;
}


.ids-modal-actions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ids-modal-mode-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.ids-modal-mode-tab {
    border-radius: 999px;
    border: 1px solid transparent;
    background: #be9a8b;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

.ids-modal-mode-tab:hover {
    color: #fff;
    outline: none;
    box-shadow: none;
    background: #be9a8b;
}

.ids-modal-mode-tab.active {
    background: #4f6c75;
    border-color: #4f6c75;
    color: #fff;
    outline: none;
    box-shadow: none;
}

.ids-modal-search {
    margin-bottom: 8px;
}

.ids-modal-search input[type="text"],
.ids-form-row input[type="text"],
.ids-form-row input[type="number"],
.ids-form-row input[type="date"],
.ids-form-row select {
    width: 100%;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid var(--ids-border);
    font-size: 14px;
    box-sizing: border-box;
}

.ids-form-row {
    margin-top: 10px;
}

.ids-form-row label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.ids-help-text {
    font-size: 12px;
    color: var(--ids-text-soft);
    margin-top: 4px;
}

.ids-required {
    color: var(--ids-danger);
}

.ids-staff-reason-confirm {
    margin-top: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff8e1;
    font-size: 13px;
}

.ids-b2b-notice {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #9f1d1d;
    background: #fbe9e9;
    color: #6a0f0f;
    font-weight: 700;
    line-height: 1.45;
}

.ids-minimum-error,
.ids-b2b-date-error {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #8f1010;
    background: #fdeaea;
    color: #7a1010;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(143, 16, 16, 0.08);
}

.ids-minimum-error-bounce {
    animation: ids-minimum-pulse 0.28s ease-in-out 2;
}

@keyframes ids-minimum-pulse {
    0% { transform: translateX(0); }
    30% { transform: translateX(-4px); }
    60% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

/* Subscriptions add flow: "First delivery: <date>" preview line. */
.ids-first-delivery {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 71, 59, 0.18);
    background: rgba(0, 71, 59, 0.06);
    color: var(--dark-green);
    font-size: 14px;
}
.ids-first-delivery svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--dark-green);
}
.ids-first-delivery strong { font-weight: 700; }

/* Loading & spinner
   -------------------------------------------------------------------------- */

.ids-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.ids-spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--ids-accent);
    animation: ids-spin 0.75s linear infinite;
}

@keyframes ids-spin {
    to { transform: rotate(360deg); }
}

/* Toast
   -------------------------------------------------------------------------- */

.ids-toast {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ids-accent);
    color: #fff;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    box-shadow: var(--ids-shadow-soft);
    z-index: 10000;
}

.ids-toast-error {
    background: var(--ids-danger);
}

/* Staff portal specifics
   -------------------------------------------------------------------------- */

.ids-staff-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.ids-staff-acting-as {
    margin: 0;
    font-size: 13px;
    color: var(--ids-text-soft);
}

.ids-staff-session-warning {
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff8e1;
    color: #8d6e00;
    font-size: 13px;
}

.ids-staff-search-wrap {
    margin-bottom: 18px;
}

.ids-staff-search-row {
    display: flex;
    gap: 8px;
}

.ids-staff-search-row input[type="text"] {
    flex: 1;
    padding: 7px 9px;
    border-radius: 999px;
    border: 1px solid var(--ids-border);
}

.ids-staff-search-results {
    margin-top: 8px;
    border-radius: var(--ids-radius-md);
    border: 1px solid var(--ids-border);
    background: #fff;
    max-height: 260px;
    overflow-y: auto;
}

.ids-staff-search-result-item {
    padding: 8px 10px;
    border-bottom: 1px solid #f3eee3;
    cursor: pointer;
}

.ids-staff-search-result-item:last-child {
    border-bottom: none;
}

.ids-staff-search-result-item:hover {
    background: #f9f3e7;
}

.ids-staff-customer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}

.ids-staff-customer-info h3 {
    margin: 0 0 2px;
}

.ids-staff-reason-wrap {
    margin-bottom: 14px;
}

.ids-staff-reason-wrap input[type="text"] {
    width: 100%;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid var(--ids-border);
}

.ids-audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ids-audit-table th,
.ids-audit-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee1cf;
    text-align: left;
}

.ids-audit-table th {
    background: var(--ids-bg-soft-alt);
    font-weight: 600;
}

.ids-audit-table code {
    background: #f5f5f5;
    padding: 1px 4px;
    border-radius: 4px;
}

/* Signup flows (key selectors)
   -------------------------------------------------------------------------- */

#ids-step-postcode,
#ids-step-account,
#ids-step-success,
#ids-b2b-step-postcode,
#ids-b2b-step-account,
#ids-b2b-step-success {
    background: #fff;
    border-radius: var(--ids-radius-md);
    border: 1px solid var(--ids-border);
    padding: 16px 18px;
    margin-bottom: 14px;
}

#ids-delivery-day-msg,
#ids-postcode-result,
#ids-b2b-postcode-result,
#ids-b2c-error,
#ids-b2b-error {
    margin-top: 8px;
}

/* Bistro subscription-page theme
   -------------------------------------------------------------------------- */

.ids-subscription-page-theme {
    /* font-family: "Arbutus Slab", Georgia, serif; */
    color: #080a0b;
    background: #fcf9f7;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0 auto 60px;
    max-width: 1220px;
}

.ids-subscription-page-theme .ids-portal-content-shell {
    background: #fcf9f7;
    padding: 12px;
}

.ids-subscription-page-theme h2,
.ids-subscription-page-theme h3,
.ids-subscription-page-theme h4,
.ids-subscription-page-theme h5,
.ids-subscription-page-theme h6 {
    font-family: "Arbutus Slab", Georgia, serif;
}

.ids-subscription-page-theme .ids-tabs {
    display: flex;
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.ids-subscription-page-theme .ids-tab {
    padding: 4px 19px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #859da1;
    border-radius: 0;
    color: #889da1;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none !important;
    outline: none;
}

.ids-subscription-page-theme .ids-tab:hover,
.ids-subscription-page-theme .ids-tab.active {
    background: transparent;
    color: #536b75;
    border-bottom-color: #536b75;
    box-shadow: none;
}

.ids-subscription-page-theme .ids-theme-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* .ids-subscription-page-theme .ids-theme-deliveries-list,
.ids-subscription-page-theme .ids-theme-subscriptions-list {
    display: grid;
    gap: 15px;
} */

.ids-subscription-page-theme .ids-delivery-group {
    background: transparent;
    border: 1px solid #ede1d9;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
}

.ids-subscription-page-theme .ids-delivery-group.is-skipped {
    opacity: 0.68;
    background: #f2ece7;
}

.ids-subscription-page-theme .ids-delivery-row {
    display: flex;
    gap: 8px;
    padding: 0;
    align-items: stretch;
    flex-wrap: wrap;
}

.ids-subscription-page-theme .ids-delivery-date-col {
    background: #ede1d9;
    width: 315px;
    flex: 0 0 315px;
    max-width: none;
    min-height: 100%;
    min-height: 236px;
    padding: 16px 14px;
    border-right: 1px solid #fcf9f7;
}

.ids-subscription-page-theme .ids-status-badge {
    display: none;
}

.ids-subscription-page-theme .ids-delivery-date-heading {
    margin: 0 0 16px;
    color: #080a0b;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
}

.ids-subscription-page-theme .ids-cutoff-label,
.ids-subscription-page-theme .ids-cutoff-label strong {
    color: #080a0b;
    font-size: 18px;
    line-height: 1.5;
}

.ids-subscription-page-theme .ids-past-cutoff-notice {
    color: #7b3120;
    font-style: normal;
    font-weight: 700;
}

.ids-subscription-page-theme .ids-cutoff-label strong {
    display: block;
    margin-top: 2px;
    font-weight: 700;
}

.ids-subscription-page-theme .ids-delivery-total {
    margin: 10px 0 0;
    color: #d3856d;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.ids-subscription-page-theme .ids-delivery-charge-note {
    margin-top: 6px;
    color: #5e5e5e;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.45;
}

.ids-subscription-page-theme .ids-delivery-actions {
    margin-top: 18px;
    gap: 8px;
}

.ids-subscription-page-theme .ids-btn {
    border-radius: 3px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: capitalize;
    box-shadow: none;
}

.ids-subscription-page-theme .ids-btn-primary,
.ids-subscription-page-theme .ids-skip-all-btn {
    background: #4f6c75;
    border-color: #4f6c75;
    color: #fff;
}

.ids-subscription-page-theme .ids-btn-primary:hover,
.ids-subscription-page-theme .ids-skip-all-btn:hover {
    background: #fff;
    color: #4f6c75;
    border-color: #4f6c75;
}

.ids-subscription-page-theme .ids-btn-skip,
.ids-subscription-page-theme .ids-btn-unskip,
.ids-subscription-page-theme .ids-btn-edit,
.ids-subscription-page-theme .ids-btn-outline,
.ids-subscription-page-theme .ids-btn-ghost {
    background: #fff;
    border: 1px solid #d3856d;
    color: #d3856d;
}

.ids-subscription-page-theme .ids-btn-skip:hover,
.ids-subscription-page-theme .ids-btn-unskip:hover,
.ids-subscription-page-theme .ids-btn-edit:hover,
.ids-subscription-page-theme .ids-btn-outline:hover,
.ids-subscription-page-theme .ids-btn-ghost:hover {
    background: #fff;
    border-color: #4f6c75;
    color: #4f6c75;
}

.ids-subscription-page-theme .ids-add-item-tile,
.ids-subscription-page-theme .ids-product-card,
.ids-subscription-page-theme .ids-subscription-card {
    min-width: 0;
    min-height: 226px;
    padding: 10px 14px 16px;
    border: 0;
    border-right: 1px solid #ffece0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.ids-subscription-page-theme .ids-add-item-tile {
    display: flex;
    width: 210px;
    min-height: 210px;
    max-width: 210px;
    flex: 0 0 210px;
    border-right: 0;
    background: #536b75;
    color: #fff;
    padding: 18px 14px;
    transition: all 0.5s;
}

.ids-subscription-page-theme .ids-add-item-tile:hover {
    background: #4a6169;
    border-right: 0;
    box-shadow: none;
    transform: none;
    border-radius: 5px;
}

.ids-subscription-page-theme .ids-add-tile-label {
    margin-top: 18px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
}

.ids-subscription-page-theme .ids-add-tile-icon {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
}

.ids-subscription-page-theme .ids-product-card {
    width: 255px;
    flex: 0 0 255px;
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-areas:
        "image price"
        "name name"
        "freq freq"
        "tags tags"
        "action action";
    align-content: start;
}

.ids-subscription-page-theme .ids-product-image,
.ids-subscription-page-theme .ids-product-image-placeholder {
    grid-area: image;
    width: 100%;
    aspect-ratio: 1.45 / 1;
    border-radius: 0;
    background: #f3ebe5;
}

.ids-subscription-page-theme .ids-product-price {
    grid-area: price;
    margin: 0;
    padding-left: 16px;
    color: #d3856d;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    line-height: 1.2;
}

.ids-subscription-page-theme .ids-product-qty {
    display: block;
    margin: 6px 0 0;
    color: #080a0b;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}

.ids-subscription-page-theme .ids-product-name {
    grid-area: name;
    margin: 12px 0 6px;
    color: #080a0b;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.ids-subscription-page-theme .ids-product-freq,
.ids-subscription-page-theme .ids-sub-next-delivery,
.ids-subscription-page-theme .ids-sub-freq,
.ids-subscription-page-theme .ids-seasonal-notice {
    color: #536b75;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

.ids-subscription-page-theme .ids-product-freq {
    grid-area: freq;
    margin: 0 0 14px;
    font-size: 17px;
}

.ids-subscription-page-theme .ids-one-off-tag,
.ids-subscription-page-theme .ids-skipped-tag {
    grid-area: tags;
    margin-top: 6px;
    margin-bottom: 2px;
    margin-right: 4px;
    background: #f8f1ec;
    color: #7b3120;
    font-family: Arial, sans-serif;
    text-align: center;
}

.ids-subscription-page-theme .ids-product-card > .ids-btn {
    grid-area: action;
    margin-top: 8px;
    justify-self: center;
    min-width: 96px;
    padding: 7px 24px;
    font-size: 18px;
    font-weight: 400;
}

.ids-subscription-page-theme .ids-subscription-group {
    /*margin: 0;
    padding-top: 18px;
    border-top: 1px solid #eee1d9;*/
    margin: 0;
    padding: 0;
    border: none;
}


.ids-subscription-page-theme .ids-subscription-group-header {
    justify-content: space-between;
    padding: 0 0 12px;
}

.ids-subscription-page-theme .ids-subscription-group-header strong {
    color: #080a0b;
    font-size: 18px;
    font-weight: 400;
}

.ids-subscription-page-theme .ids-badge {
    background: #ede1d9;
    color: #536b75;
    font-family: Arial, sans-serif;
}

.ids-subscription-page-theme .ids-subscription-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.ids-subscription-page-theme .ids-subscription-group-add-only {
    padding-top: 0;
    border-top: 0;
}

.ids-subscription-page-theme .ids-subscription-group-active .ids-subscription-group-header {
    display: none;
}

.ids-subscription-page-theme .ids-subscription-group-add-only .ids-subscription-grid,
.ids-subscription-page-theme .ids-subscription-group-active .ids-subscription-grid {
    gap: 16px;
}

.ids-subscription-page-theme .ids-subscription-group-add-only .ids-add-item-tile,
.ids-subscription-page-theme .ids-subscription-group-active .ids-add-item-tile {
    width: 240px;
    max-width: 240px;
    min-height: 280px;
    flex: 0 0 240px;
    padding: 20px 16px 18px;
}

.ids-subscription-page-theme .ids-subscription-group-add-only .ids-add-tile-icon,
.ids-subscription-page-theme .ids-subscription-group-active .ids-add-tile-icon {
    width: 112px;
    height: 112px;
    border-width: 5px;
    font-size: 72px;
}

.ids-subscription-page-theme .ids-subscription-group-add-only .ids-add-tile-label,
.ids-subscription-page-theme .ids-subscription-group-active .ids-add-tile-label {
    margin-top: 18px;
    font-size: 15px;
    font-weight: 600;
}

.ids-subscription-page-theme .ids-subscription-card {
    width: 220px;
    max-width: 220px;
    flex: 0 0 220px;
    min-height: 320px;
    padding: 8px 8px 14px;
    border-right: 1px solid #f2e4da;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

.ids-subscription-page-theme .ids-subscription-card .ids-product-image,
.ids-subscription-page-theme .ids-subscription-card .ids-product-image-placeholder {
    width: 100%;
    aspect-ratio: 1.5 / 1;
    border-radius: 4px;
    object-fit: cover;
    max-height: 150px;
}

.ids-subscription-page-theme .ids-subscription-card .ids-product-name {
    margin: 10px 0 6px;
    font-size: 15px;
    line-height: 1.25;
    text-align: left;
}

.ids-subscription-page-theme .ids-sub-next-delivery {
    margin: 10px 0 8px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    color: #080a0b;
    font-size: 14px;
    text-align: left;
}

.ids-subscription-page-theme .ids-date-highlight {
    color: #d3856d;
    font-weight: 400;
}

.ids-subscription-page-theme .ids-sub-price {
    margin: 4px 0 8px;
    color: #d3856d;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* .ids-subscription-page-theme .ids-sub-freq {
    margin: 0 0 14px;
    color: #536b75;
    font-size: 14px;
    text-align: center;
} */

.ids-subscription-page-theme .ids-subscription-card .ids-sub-freq:first-of-type {
    margin: 0 0 12px;
    color: #536b75;
    font-size: 14px;
    text-align: center;
}

.ids-subscription-page-theme .ids-subscription-card .ids-btn {
    margin-top: auto;
    align-self: center;
    min-width: 84px;
    padding: 5px 18px;
    font-size: 14px;
    font-weight: 400;
}

.ids-subscription-page-theme .ids-subscription-card.is-paused {
    background: #f7f2ef;
}

.ids-subscription-page-theme .ids-subscription-card.is-cancelled {
    background: #f5f0ec;
    opacity: 0.7;
}

.ids-subscription-page-theme .ids-sub-price {
    display: block;
    margin: 8px 0 4px;
    color: #d3856d;
    font-size: 15px;
    font-weight: 600;
}

.ids-subscription-page-theme .ids-subscription-card .ids-btn {
    margin-top: 10px;
}

.ids-subscription-page-theme .ids-b2b-schedule-wrap {
    margin-top: 18px;
}

.ids-subscription-page-theme .ids-empty-state {
    border: 1px solid #ede1d9;
    background: #fff;
    padding: 32px 20px;
}

.ids-subscription-page-theme ~ .ids-modal-overlay .ids-modal-header {
    background: #4f6c75;
    border-bottom: 1px solid #4f6c75;
}

.ids-subscription-page-theme ~ .ids-modal-overlay .ids-modal-header h3 {
    color: #fff !important;
    font-family: "Arbutus Slab", Georgia, serif;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.ids-subscription-page-theme ~ .ids-modal-overlay .ids-modal-close {
    color: #fff;
}
#ids-subscriptions-list > .paper-panel:nth-of-type(3) .subscription-actions, #ids-subscriptions-list > .paper-panel:nth-of-type(3) .subscription-actions + .pc-divider {
    display: none !important;
}

/* Responsive tweaks
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .ids-subscription-page-theme .ids-subscription-card,
    .ids-subscription-page-theme .ids-subscription-group-add-only .ids-add-item-tile {
        width: calc(50% - 8px);
        max-width: none;
        flex: 1 1 calc(50% - 8px);
    }

    .ids-portal,
    .ids-staff-portal {
        /*padding: 5px 5px 10px;*/
        margin: 16px auto;
    }

    .ids-delivery-date-col {
        flex: 1 1 100%;
        max-width: 100%;
        border-bottom: 1px solid #f1e3cf;
        padding-bottom: 10px;
        margin-bottom: 0;
    }

    .ids-delivery-row {
        padding: 12px 10px 14px;
    }

    .ids-add-item-tile,
    .ids-product-card {
        flex: 1 1 calc(50% - 10px);
        max-width: none;
    }
}

@media (max-width: 640px) {
    .ids-subscription-page-theme {
        margin: 10px auto 10px;
    }
#ids-subscriptions-list .pc-divider {
    margin-bottom: 20px;
    display: none;
}

    .ids-subscription-page-theme .ids-tabs {
        width: auto;
        justify-content: flex-start;
        gap: 10px;
    }

    .ids-subscription-page-theme .ids-tab {
        flex: 0 0 auto;
        padding: 4px 14px;
        text-align: left;
    }

    .ids-subscription-page-theme .ids-delivery-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ids-subscription-page-theme .ids-delivery-date-col {
        width: 100%;
        flex: none;
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid #fcf9f7;
    }

    .ids-subscription-page-theme .ids-theme-deliveries-list,
    .ids-subscription-page-theme .ids-theme-subscriptions-list {
        gap: 12px;
    }

    .ids-subscription-page-theme .ids-subscription-grid {
        gap: 0;
    }

    .ids-subscription-page-theme .ids-product-card,
    .ids-subscription-page-theme .ids-add-item-tile,
    .ids-subscription-page-theme .ids-subscription-card {
        border-right: 0;
        border-bottom: 1px solid #ffece0;
    }

    .ids-subscription-page-theme .ids-add-item-tile {
        max-width: none;
        width: 100%;
        flex: 1 1 auto;
    }

    .ids-subscription-page-theme .ids-subscription-card,
    .ids-subscription-page-theme .ids-subscription-group-add-only .ids-add-item-tile {
        width: 100%;
        min-height: 0;
        flex: 1 1 100%;
    }

    .ids-tabs {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .ids-tab {
        flex: 1;
        padding-inline: 8px;
        font-size: 13px;
        text-align: center;
    }

    .ids-subscription-grid,
    .ids-product-grid {
        grid-template-columns: 1fr;
    }

    .ids-staff-search-row {
        flex-direction: column;
    }

    .ids-staff-customer-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 567px) {
    .ids-subscription-page-theme .ids-product-card {
        width: 100%;
        flex: 1 1 100%;
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "price"
            "name"
            "freq"
            "tags"
            "action";
    }

    .ids-subscription-page-theme .ids-product-price {
        padding-left: 0;
        margin-top: 8px;
    }

    .ids-subscription-page-theme .ids-add-tile-label {
        margin-top: 16px;
        font-size: 18px;
    }

    .ids-subscription-page-theme .ids-add-tile-icon {
        width: 92px;
        height: 92px;
        font-size: 58px;
    }

    .ids-subscription-page-theme .ids-delivery-date-heading {
        font-size: 22px;
    }

    .ids-subscription-page-theme .ids-cutoff-label,
    .ids-subscription-page-theme .ids-cutoff-label strong,
    .ids-subscription-page-theme .ids-product-freq {
        font-size: 15px;
    }
}



/*  Ck css file 1-4-26 */
.ids-subscription-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px !important;
    width: 100% !important;
    /*padding: 6px;*/
}

.ids-add-item-tile.ids-open-add-modal-sub.newcks {
    border: none;
    padding: 10px;
    transition: all 0.5s;
    background: #536b75;
    transition: all 0.5s;
    width: auto;
    max-width: unset;
    min-height: auto !important;
    height: auto !important;
}
.ids-add-item-tile.ids-open-add-modal-sub.newcks:hover {
    border: none;
    border-radius: 5px;
}

.ids-add-item-tile.ids-open-add-modal-sub.newcks .ids-add-tile-icon  {
    width: 100px;
    height: 100px;
    /*margin: 20px auto auto auto;*/
}
.ids-add-item-tile.ids-open-add-modal-sub.newcks.customeRedesign .ids-add-tile-icon {
    width: 50px;
    height: 50px;
    margin: 20px auto auto auto;
}

.ids-add-item-tile.ids-open-add-modal-sub.newcks .ids-add-tile-label {
    text-align: left;
    padding-left: 0;
    margin-top: 5px;
}

.ids-add-item-tile.ids-open-add-modal-sub.newcks .ids-add-tile-label  {
    color: #fff !important;
    font-weight: normal;
    font-size: 14px;
    font-family: arial, sans-serif;
    text-align: center;
    margin-top: 20px;
}
.ids-add-item-tile.ids-open-add-modal-sub.newcks:hover .ids-add-tile-label {
    color: #eee1d9 !important;
}
.ids-subscription-card.newcksDesign{
    background: #fff;
    border: 1px solid #ffece0;
    padding: 6px 6px 10px 6px;
    text-align: center;
    border-radius: 5px;
    width: auto;
    max-width: unset;
    min-height: auto;
    display: unset;
}
.newcksDesign .imgContainer {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.newcksDesign .imgContainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    max-height: unset !important;
}
.newcksDesign .ids-product-name{
    text-align: left;
    padding-left: 4px;
    margin-top: 5px;
    line-height: 1.318;
}
.newcksDesign .ids-product-name h4{
    color: #080a0b !important;
    font-weight: 600;
    font-size: 13px;
    margin-top: 0px;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 158px;
}

p.ids-sub-freq-size {
    font-size: 12px !important;
    outline: none;
    border: none;
    box-shadow: none;
    transition: all 0.5s;
    text-decoration: none;
    font-family: 'Arbutus Slab', sans-serif !important;
    margin: 0;
    text-transform: uppercase;
    font-weight: 600;
    background: #395a6a;
    color: #fff;
    display: inline-flex;
    justify-content: center;
    padding: 2px 15px 1px 15px;
    letter-spacing: 1px;
}

.newcksDesign .ids-sub-next-delivery{
    text-align: left;
    padding-left: 0;
    margin-bottom: 6px;
    margin-top: 10px;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.newcksDesign .ids-sub-next-delivery p{
    font-size: 12px !important;
    font-weight: 500;
    color: #080a0b !important;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: normal;
    padding: 0;
    font-family: 'Arbutus Slab', sans-serif !important;
}
.newcksDesign .ids-sub-next-delivery span.ids-date-highlight{
    font-size: 12px;
    color: #d3856d;
    outline: none;
    border: none;
    box-shadow: none;
    transition: all 0.5s;
    text-decoration: none;
    font-family: 'Arbutus Slab', sans-serif !important;
}

.newcksDesign .ids-sub-price{
    text-align: center;
    padding-left: 4px;
    line-height: 18px;
}
.newcksDesign .ids-sub-price p {
    margin-bottom: 4px;
    margin-top: 4px;
}
.newcksDesign .ids-sub-price p bdi{
    font-size: 15px !important;
    font-weight: 600;
    color: #d3856d !important;
}

p.ids-sub-freq{
    margin-bottom: 4px !important;
    margin-top: 4px !important;
    text-align: center !important;
    line-height: normal !important;
    font-size: 13px !important;
    color: #536b75 !important;
    outline: none;
    border: none;
    box-shadow: none;
    transition: all 0.5s;
    text-decoration: none;
    font-family: 'Arbutus Slab', sans-serif !important;
}
p.ids-product-freq{
    margin-bottom: 4px !important;
    margin-top: 4px !important;
    text-align: center !important;
    line-height: normal !important;
    font-size: 13px !important;
    color: #536b75 !important;
    outline: none;
    border: none;
    box-shadow: none;
    transition: all 0.5s;
    text-decoration: none;
    font-family: 'Arbutus Slab', sans-serif !important;
}

.footerContaineBox {
    text-align: center;
    display: block;
    margin-top: 6px;
}
.footerContaineBox button {
    outline: none;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    text-transform: capitalize !important;
    padding: 5px 16px !important;
    line-height: normal;
    transition: all 0.5s;
    box-shadow: none !important;
    display: inline-block;
    border-radius: 3px !important;
    background: #fff !important;
    color: #d3856d !important;
    border: 1px solid #d3856d !important;
    margin-top: 0 !important;
    min-width: auto !important;
}
.footerContaineBox button:hover {
    background-color: #fff !important;
    border: 1px solid #4f6c75 !important;
    color: #4f6c75 !important;
}
.footerContaineBox button:focus {
    box-shadow: normal !important;
    outline: none !important;
}

.ids-delivery-group.cksContainer{
    display: flex;
    gap: 10px;
    /*border: 1px solid #ede1d9;*/
    margin-bottom: 10px;
    /*padding: 6px;*/
    border: none;
    padding: 0;
}

.ids-delivery-group.cksContainer .ids-delivery-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.ids-delivery-date-col.cskCol{
    width: 100%;
    min-width: auto;
    background: #ede1d9;
    border-right: 1px solid #fcf9f7;
    padding: 10px;
    flex: none;
    min-height: auto;
    max-width: unset;
    border-radius: 5px;
}
.ids-cutoff-label.estContainer-lastDay{
    margin-top: 5px;
    margin-bottom: 5px;
}


.ids-cutoff-label.estContainer-lastDay p {
    color: #5e5e5e !important;
    font-weight: normal !important;
    font-size: 14px !important;
    margin-bottom: 0;
}
.ids-cutoff-label.estContainer-lastDay p.strong-text {
    font-weight: 600 !important;
    font-family: 'Arbutus Slab', sans-serif !important;
    color: #080a0b !important;
}
.ids-delivery-actions.cks_btn{
    text-align: center;
    margin: 0 !important;
    gap: unset;
}
.ids-delivery-total.cslPrice {
    margin: 0 !important;
}
.ids-delivery-total.cslPrice bdi {
    font-family: 'Arbutus Slab', sans-serif !important;
}
.ids-delivery-actions.cks_btn button{
    background: #4f6c75;
    outline: none;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: capitalize;
    padding: 8px 26px;
    line-height: normal;
    border-radius: 3px;
    border: 1px solid #4f6c75;
    transition: all 0.5s;
    width: max-content;
    display: inline-flex;
    justify-content: center;
    margin: auto;
}

.ids-delivery-actions.cks_btn button:hover {
    background: #fff;
    color: #4f6c75;
    border: 1px solid #4f6c75;
}

.ids-delivery-actions.cks_btn button:focus {
    box-shadow: normal;
    outline: none;
}
.status-publish .content_left h3 {
    color: #000 !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    margin-bottom: 0 !important;
    line-height: normal !important;
    margin-left: -2px !important;
    font-family: 'Arbutus Slab', sans-serif !important;
}
.ids-product-card.newcks_LeftRight{
    width: 100%;
    max-width: unset;
    flex: auto;
    display: flex;
    min-height: auto;
    flex-wrap: wrap;
    border: 1px solid #ffece0;
    border-radius: 5px;
    padding: 8px;
}
.ids-product-card.newcks_LeftRight .ids-product-name {
    text-align: left;
    padding-left: 0;
    margin-top: 5px;
    line-height: 1.318;
}
.ids-product-card.newcks_LeftRight .ids-product-name h4 {
    color: #080a0b !important;
    font-weight: 600;
    font-size: 13px;
    margin-top: 0px;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 128px;
}

.ids-product-card.newcks_LeftRight .modifyContenir {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.ids-product-card.newcks_LeftRight.imgContainer {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.ids-product-card.newcks_LeftRight .imgContainer.customeDesign {
    width: 40%;
}
.ids-product-card.newcks_LeftRight .imgContainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.ids-product-card.newcks_LeftRight .ids-product-price {
    text-align: left;
    padding-left: 4px;
    width: 58%;
}
.ids-product-card.newcks_LeftRight .details_prize {
    text-align: center;
    padding-left: 4px;
    line-height: 18px;
}
.ids-product-card.newcks_LeftRight .details_prize p {
    margin: 0;
}
.ids-product-card.newcks_LeftRight .details_prize p bdi {
    font-size: 15px !important;
    font-weight: 600;
    color: #d3856d !important;
}
.ids-product-card.newcks_LeftRight p.price_text {
    margin-bottom: 0;
    color: #d3856d !important;
    margin-top: 0;
    text-align: left;
}
.ids-product-card.newcks_LeftRight p.ids-product-qty {
    font-size: 12px !important;
    font-weight: 600;
    color: #080a0b !important;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    margin-top: 0;
    text-align: left;
}

.ids-add-item-tile.ids-open-add-modal.cskBoxAddmore {
    height: auto;
    min-height: auto;
    padding: 10px;
    width: 100%;
    max-width: unset;
    flex: unset;
}
.cskBoxAddmore .ids-add-tile-label {
    color: #fff;
    line-height: 1.35;
    font-weight: normal;
    font-size: 14px;
    font-family: arial, sans-serif;
    text-align: center;
    margin-top: 20px;
}
.ids-add-item-tile.ids-open-add-modal.cskBoxAddmore:hover .ids-add-tile-label {
    color: #eee1d9 !important;
}





/*.ids-modal-body .ids-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
*/
.ids-modal-search{
    width: 99%;
}
.ids-modal-search input[type="text"]{
    height: 40px;
    border: 1px solid #536b75;
    border-radius: 4px;
    box-shadow: none;
    background: #f7f7f7;
    outline: none;
    transition: all 0.5s;
    width: 100%;
    font-size: 16px;
    letter-spacing: 0.5px;
}
.ids-modal-search input[type="text"]:focus{
    border: 1px solid #2c2d33; 
    background: #fff;
    border-radius: 0;
}

/* Sirf form rows ko 2 column me lao */
.ids-modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.ids-modal-options{
    /*display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;*/

    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    border: 1px solid #536b75;
    padding: 8px 10px 18px 10px;
    border-radius: 3px;
}

/* Har form row = 50% width */
.ids-modal-body .ids-form-row {
    width: calc(50% - 8px);
    margin: 0;
}
.ids-modal-body .ids-form-row label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 500;
    letter-spacing: 0.8px;
    color: #121415;
}
.ids-modal-body .ids-form-row .ids-modal-search input[type="text"], 
.ids-form-row input[type="text"], 
.ids-form-row input[type="number"], 
.ids-form-row input[type="date"], 
.ids-form-row select {
    height: 38px;
    border: 1px solid #c4c8c9;
    border-radius: 2px;
    box-shadow: none;
    background: #fff;
    outline: none;
}
.ids-modal-body .ids-form-row .ids-modal-search input[type="text"]:focus, 
.ids-form-row input[type="text"]:focus, 
.ids-form-row input[type="number"]:focus, 
.ids-form-row input[type="date"]:focus, 
.ids-form-row select:focus {
    border: 1px solid #2c2d33; /* 👈 apna color yahan change kar sakte ho */
    background: #fff;
    border-radius: 0;
}

.ids-modal-options .ids-form-row{
    width: calc(50% - 8px);
    margin: 0;
}

/* Buttons full width */
.ids-modal-actions {
    width: 100%;
}


/* Jo full width rehna chahiye (optional) */
#ids-product-search,
#ids-product-results,
.ids-modal-body > p {
    width: 100%;
}


.ids-modal-body .ids-product-grid .ids-product-choice{
    border-radius: 5px;
    border: 1px solid #ffece0;
    padding: 0;
    overflow: hidden;
}
.ids-modal-body .ids-product-grid .ids-product-choice img{
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.ids-modal-body .ids-product-grid .ids-product-choice .ids-product-choice-name{
    padding: 0 8px;
    color: #080a0b;
    font-weight: 600;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    margin-bottom: 5px;
}
.ids-modal-body .ids-product-grid .ids-product-choice .ids-product-choice-price{
    padding: 0 8px;
    text-align: center;
    line-height: normal;
}
.ids-modal-body .ids-product-grid .ids-product-choice .ids-product-choice-price bdi {
    font-size: 19px !important;
    font-weight: 600;
    color: #d3856d !important;
    font-family: "Alegreya Sans", sans-serif;
}

.ids-modal-body .ids-product-grid .ids-product-choice .ids-product-choice-variation{
    padding: 2px 8px 8px 8px;
    border-top: 1px solid #f1f1f1;
}
.ids-modal-body .ids-product-grid .ids-product-choice .ids-product-choice-variation label{
    margin-bottom: 0;
    color: #080a0b;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.ids-modal-body .ids-product-grid .ids-product-choice .ids-product-variation-select{
    height: 34px;
    border: 1px solid #c4c8c9;
    border-radius: 9px;
    box-shadow: none;
    background: #fff;
    outline: none;
    padding: 6px;
}


.ids-modal-body .ids-product-grid .ids-product-choice .ids-product-variation-select:focus{
    border: 1px solid #2c2d33;
    background: #fff;
    border-radius: 0;
}
.post-10 {
    padding-top: .8em !important;
}
/* Mobile */
@media (max-width: 600px) {
    .ids-modal-body .ids-form-row {
        width: 100%;
    }
    .ids-modal-options .ids-form-row {
        width: 100%;
    }
}


@media (max-width: 992px) {
    .ids-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}



@media only screen and (min-width: 320px) and (max-width: 767px) {
    .post-10 {
        padding-top: .8em
    }
    header.entry-header h1.entry-title{
        margin-bottom: 0;
    }
    .ids-subscription-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px !important;
    }
    .ids-subscription-page-theme .ids-portal-content-shell {
        padding: 0;
    }
    .newcksDesign .ids-product-name h4 {
        white-space: normal;
        width: auto;
        text-align: center;
    }
    .woocommerce-MyAccount-content p.ids-sub-freq-size {
        padding: 4px 15px 2px 15px;
    }
    .newcksDesign .ids-sub-price {
        margin: 0;
        padding: 0;
    }
    .newcksDesign .ids-sub-price p {
        padding: 0;
    }
    .ids-subscription-page-theme .ids-sub-freq {    
        padding-top: 4px;
    }
    .ids-subscription-page-theme .ids-subscription-card .ids-btn {
        width: 90%;
        padding: 7px !important;
        font-size: 14px !important;
    }
    .ids-subscription-card.newcksDesign {
        padding: 3px 3px 7px 3px;
    }
    .ids-subscription-page-theme ~ .ids-modal-overlay .ids-modal-header h3 {
        padding: 0 !important;
    }
    .ids-modal-product-name {
        padding-top: 0 !important;
    }
    .ids-modal-actions {
        margin-top: 5px;
    }
    .ids-btn {
        padding: 7px 12px;
        font-size: 14px;
        width: 100%;
    }
    .ids-modal-body {
        padding: 12px 14px 18px;
        gap: 8px;
    }
    .ids-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ids-delivery-group.cksContainer .ids-delivery-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .ids-delivery-date-col.cskCol {
        padding: 6px 6px 10px 6px;
        margin-bottom: 0;
    }
    .ids-add-item-tile.ids-open-add-modal.cskBoxAddmore {
        padding: 6px 6px 10px 6px;
        border-bottom: none;
    }
    .status-publish .content_left h3 {
        margin: 0 !important;
        padding: 0 0 4px 0 !important;
        border-bottom: 1px solid #e3d0c2;
    }
    .ids-cutoff-label.estContainer-lastDay p {
        margin: 0 !important;
        padding: 0;
        text-align: center;
    }
    .cskBoxAddmore .ids-add-tile-label {
        margin-top: 6px;
    }
    .ids-product-card.newcks_LeftRight {
        padding: 6px;
    }
    .ids-product-card.newcks_LeftRight .ids-product-price {
        padding-left: 0;
        margin: 0;
    }
    .ids-product-card.newcks_LeftRight p.price_text {
        padding: 0;
        margin: 0;
    }
    .ids-product-card.newcks_LeftRight p.price_text .woocommerce-Price-amount.amount {
        margin-left: 0;
    }
    .ids-product-card.newcks_LeftRight p.ids-product-qty {
        padding: 2px 0;
    }
    .footerContaineBox button {
        padding: 7px 16px !important;
    }
    .ids-delivery-group.cksContainer {
        padding: 0 0 10px 0;
        border-bottom: 1px dashed #566b75;
    }
    .ids-modal-mode-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    .ids-modal-mode-tab {
        padding: 7px 12px;
        width: 100%;
    }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .post-10 {
        padding-top: 0.6em !important;
    }
    .ids-portal, .ids-staff-portal {
        padding: 0px 0px 10px;
        margin: 0px auto 16px auto;
    }
    .ids-delivery-group.cksContainer .ids-delivery-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .ids-cutoff-label.estContainer-lastDay {
        text-align: center;
    }
    .woocommerce-MyAccount-content .ids-cutoff-label.estContainer-lastDay p.strong-text {
        padding: 0;
    }
    .woocommerce-MyAccount-content .ids-cutoff-label.estContainer-lastDay p.normal-text {
        padding: 0;
    }


    .ids-subscription-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .newcksDesign .ids-product-name h4 {
        white-space: normal;
        width: auto;
        text-align: center;
    }
    .footerContaineBox button {
        padding: 7px 24px !important;
    }
    .woocommerce-MyAccount-content .ids-product-card.newcks_LeftRight p.price_text {
        padding-top: 0;
    }
    .woocommerce-MyAccount-content .ids-product-card.newcks_LeftRight p.ids-product-qty {
        padding-top: 0;
    }
    .ids-product-card.newcks_LeftRight {
        padding: 6px;
    }
    .ids-product-card.newcks_LeftRight .ids-product-name h4 {
        white-space: normal;
        width: auto;
        text-align: center;
    }

    .ids-subscription-page-theme ~ .ids-modal-overlay .ids-modal-header h3 {
        margin-top: 0;
    }
    .woocommerce-MyAccount-content p.ids-sub-freq-size{
        padding-top: 2px;
    }
    .woocommerce-MyAccount-content .ids-subscription-page-theme .ids-sub-price p {
        padding-top: 0;
    }
    .woocommerce-MyAccount-content .ids-subscription-page-theme p.ids-sub-freq  {
        padding-top: 0;
    }
    
}


@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .post-10 {
        padding-top: 0.6em !important;
    }
    .ids-portal, .ids-staff-portal {
        padding: 0px 0px 10px;
        margin: 0px auto 16px auto;
    }
    .ids-delivery-group.cksContainer .ids-delivery-row {
        grid-template-columns: repeat(4, 1fr);
    }
    .ids-cutoff-label.estContainer-lastDay {
        text-align: center;
    }
    .woocommerce-MyAccount-content .ids-cutoff-label.estContainer-lastDay p.strong-text {
        padding: 0;
    }
    .woocommerce-MyAccount-content .ids-cutoff-label.estContainer-lastDay p.normal-text {
        padding: 0;
    }

    .ids-subscription-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .newcksDesign .ids-product-name h4 {
        white-space: normal;
        width: auto;
        text-align: center;
    }
    .footerContaineBox button {
        padding: 7px 24px !important;
    }
    .woocommerce-MyAccount-content .ids-product-card.newcks_LeftRight p.price_text {
        padding-top: 0;
    }
    .woocommerce-MyAccount-content .ids-product-card.newcks_LeftRight p.ids-product-qty {
        padding-top: 0;
    }
    .ids-product-card.newcks_LeftRight {
        padding: 6px;
    }
    .ids-product-card.newcks_LeftRight .ids-product-name h4 {
        white-space: normal;
        width: auto;
        text-align: center;
    }

    .ids-subscription-page-theme ~ .ids-modal-overlay .ids-modal-header h3 {
        margin-top: 0;
    }
    .woocommerce-MyAccount-content p.ids-sub-freq-size{
        padding-top: 2px;
    }
    .woocommerce-MyAccount-content .ids-subscription-page-theme .ids-sub-price p {
        padding-top: 0;
    }
    .woocommerce-MyAccount-content .ids-subscription-page-theme p.ids-sub-freq  {
        padding-top: 0;
    }
    
}
/* -----------------------------------------------------------------------
 * Move Delivery modal
 * --------------------------------------------------------------------- */
#ids-move-modal .ids-move-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
    margin: 12px 0 16px;
}

#ids-move-modal .ids-move-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--ids-border, #ddd);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

#ids-move-modal .ids-move-option:hover {
    background: var(--ids-bg-date, #f7f3ef);
}

#ids-move-modal .ids-move-option input[type=radio] {
    margin: 0;
}

#ids-move-modal .ids-move-option input[type=radio]:checked + span {
    font-weight: 600;
}

#ids-move-modal .ids-move-empty {
    padding: 16px 0;
    color: #666;
    text-align: center;
}

#ids-move-modal .ids-move-loading {
    padding: 16px 0;
    text-align: center;
}

/* Stack actions vertically with breathing room when there's more than one button. */
.ids-delivery-actions.cks_btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ids-delivery-actions.cks_btn > .ids-btn,
.ids-delivery-actions.cks_btn > button {
    margin: 0;
}

/* -----------------------------------------------------------------------
 * Add Item modal — flex column with a real sticky footer.
 *
 *   .ids-modal               flex column, max-height 90vh
 *     .ids-modal-header      auto height, top
 *     .ids-modal-body        flex:1, scrolls vertically — ONLY this scrolls
 *     .ids-modal-footer      auto height, pinned at bottom
 *
 * Because the footer is a sibling of the body (not a descendant), it cannot
 * overlap the scrolling content. The body's natural scroll handles overflow.
 * --------------------------------------------------------------------- */
#ids-add-item-modal .ids-modal-with-footer {
    max-width: 860px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#ids-add-item-modal .ids-modal-with-footer > .ids-modal-header {
    flex: 0 0 auto;
}

#ids-add-item-modal .ids-modal-with-footer > .ids-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: none;
    min-height: 0;
}

#ids-add-item-modal .ids-modal-with-footer > .ids-modal-footer {
    flex: 0 0 auto;
    border-top: 1px solid #d9c8b7;
    background: #faf4ef;
    padding: 14px 22px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

/* Footer bar — column layout: top row (qty + total) + bottom row (CTA button).
 * NOTE: no !important on display — jQuery .hide() needs to set display:none
 * to toggle between one-off and subscribe panels. */
#ids-add-item-modal .ids-modal-footer-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent;
    width: 100%;
}

#ids-add-item-modal .ids-footer-row {
    display: flex;
    width: 100%;
}

#ids-add-item-modal .ids-footer-row-top {
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#ids-add-item-modal .ids-footer-row-cta {
    align-items: stretch;
}

#ids-add-item-modal .ids-footer-row-cta .ids-modal-footer-cta {
    width: 100%;
}

#ids-add-item-modal .ids-modal-footer-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#ids-add-item-modal .ids-modal-footer-col label {
    font-size: 11px;
    color: #6c6c6c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0;
}

#ids-add-item-modal .ids-footer-total {
    align-items: flex-end;
    text-align: right;
    gap: 8px;
}

#ids-add-item-modal .ids-total-line {
    font-size: 13px;
    color: #5a5a5a;
}

#ids-add-item-modal .ids-total-line span {
    font-size: 18px;
    font-weight: 700;
    color: #d3856d;
    font-family: 'Arbutus Slab', sans-serif;
    margin-left: 4px;
}

/* Quantity stepper */
#ids-add-item-modal .ids-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c4c8c9;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

#ids-add-item-modal .ids-qty-btn {
    width: 32px;
    height: 36px;
    background: none;
    border: 0;
    color: #4f6c75;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease;
}

#ids-add-item-modal .ids-qty-btn:hover {
    background: #f0eae3;
}

#ids-add-item-modal .ids-qty-stepper input[type="number"] {
    width: 44px;
    height: 36px;
    text-align: center;
    border: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 0;
    -moz-appearance: textfield;
}

#ids-add-item-modal .ids-qty-stepper input[type="number"]::-webkit-outer-spin-button,
#ids-add-item-modal .ids-qty-stepper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Primary CTA button styling — big and prominent */
#ids-add-item-modal .ids-modal-footer-cta {
    background: linear-gradient(180deg, #5a7a83 0%, #4f6c75 100%);
    color: #fff;
    font-weight: 700;
    padding: 16px 28px;
    border-radius: 999px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 14px;
    border: 1px solid #4f6c75;
    box-shadow:
        0 2px 4px rgba(79, 108, 117, 0.18),
        0 6px 18px rgba(79, 108, 117, 0.22);
    cursor: pointer;
    transition: transform 0.06s ease, box-shadow 0.18s ease, background 0.18s ease;
    width: 100%;
}

#ids-add-item-modal .ids-modal-footer-cta:hover {
    background: linear-gradient(180deg, #4b6770 0%, #3e575f 100%);
    box-shadow:
        0 3px 6px rgba(79, 108, 117, 0.25),
        0 10px 24px rgba(79, 108, 117, 0.28);
}

#ids-add-item-modal .ids-modal-footer-cta:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(79, 108, 117, 0.25);
}

#ids-add-item-modal .ids-modal-footer-cta:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Divider between the tabs and the hint banner */
#ids-add-item-modal .ids-modal-mode-tabs {
    border-bottom: 1px solid #e7d6c4;
    padding-bottom: 12px;
    margin-bottom: 4px;
}

/* Polished search bar */
#ids-add-item-modal .ids-modal-search input[type="text"] {
    border: 1.5px solid #d9c8b7;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14.5px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#ids-add-item-modal .ids-modal-search input[type="text"]:focus {
    outline: none;
    border-color: #4f6c75;
    box-shadow: 0 0 0 3px rgba(79, 108, 117, 0.12);
}

/* Stronger hover + selection state on product cards */
#ids-add-item-modal .ids-product-choice {
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.06s ease,
        background 0.18s ease;
}

#ids-add-item-modal .ids-product-choice:hover:not(.unavailable):not(.selected) {
    border-color: #b9c4c8;
    box-shadow: 0 6px 18px rgba(31, 41, 46, 0.08);
    transform: translateY(-1px);
}

#ids-add-item-modal .ids-product-choice.selected {
    border-color: #4f6c75 !important;
    background: #f6f9fa;
    box-shadow:
        0 0 0 2px #4f6c75 inset,
        0 4px 14px rgba(79, 108, 117, 0.15);
}

/* Frequency select inside subscribe footer */
#ids-add-item-modal .ids-footer-freq select {
    height: 36px;
    border: 1px solid #c4c8c9;
    border-radius: 999px;
    padding: 0 14px;
    background: #fff;
    font-size: 14px;
    color: #1a1a1a;
    min-width: 160px;
}

/* -----------------------------------------------------------------------
 * In-modal guidance hint
 *
 * A card-style banner that tells the customer exactly what to do next.
 * State-driven via the [data-state] attribute. Each state has its own
 * SVG icon, accent colour, label and message.
 * --------------------------------------------------------------------- */
#ids-add-item-modal .ids-modal-hint {
    --hint-accent:    #4f6c75;
    --hint-bg-from:   #f6f9fa;
    --hint-bg-to:     #eef3f5;
    --hint-border:    #d9e1e4;
    --hint-label:     #4f6c75;
    --hint-text:      #2b3a40;

    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0 6px;
    padding: 14px 18px 14px 22px;
    background: linear-gradient(135deg, var(--hint-bg-from) 0%, var(--hint-bg-to) 100%);
    border: 1px solid var(--hint-border);
    border-radius: 10px;
    box-shadow:
        0 1px 2px rgba(31, 41, 46, 0.04),
        0 4px 16px rgba(31, 41, 46, 0.04);
    overflow: hidden;
    transition: background 0.25s ease, border-color 0.25s ease;
}

/* Coloured accent stripe down the left edge */
#ids-add-item-modal .ids-modal-hint::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--hint-accent);
    border-radius: 10px 0 0 10px;
}

#ids-add-item-modal .ids-modal-hint .ids-hint-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--hint-accent);
    box-shadow:
        0 0 0 1px var(--hint-border) inset,
        0 1px 3px rgba(31, 41, 46, 0.06);
}

#ids-add-item-modal .ids-modal-hint .ids-hint-svg {
    width: 20px;
    height: 20px;
    display: none;
}

#ids-add-item-modal .ids-modal-hint[data-state="pick"]      .ids-hint-svg-pick      { display: block; }
#ids-add-item-modal .ids-modal-hint[data-state="variation"] .ids-hint-svg-variation { display: block; }
#ids-add-item-modal .ids-modal-hint[data-state="ready"]     .ids-hint-svg-ready     { display: block; }

#ids-add-item-modal .ids-modal-hint .ids-hint-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 2px;
    min-width: 0;
}

#ids-add-item-modal .ids-modal-hint .ids-hint-label {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--hint-label);
    font-family: 'Poppins', 'Alegreya Sans', sans-serif;
    white-space: nowrap;
}

#ids-add-item-modal .ids-modal-hint .ids-hint-sep {
    flex: 0 0 auto;
    color: var(--hint-border);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    transform: translateY(-1px);
    user-select: none;
}

#ids-add-item-modal .ids-modal-hint .ids-hint-text {
    flex: 1 1 0;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--hint-text);
    font-family: 'Poppins', 'Alegreya Sans', sans-serif;
    font-weight: 400;
    min-width: 0;
}

#ids-add-item-modal .ids-modal-hint .ids-hint-text strong {
    color: var(--hint-accent);
    font-weight: 600;
}

#ids-add-item-modal .ids-modal-hint .ids-hint-text em {
    font-style: normal;
    font-weight: 600;
    color: var(--hint-accent);
}

/* --- State: variation needed (warm amber, calls attention) --- */
#ids-add-item-modal .ids-modal-hint[data-state="variation"] {
    --hint-accent:  #c2682e;
    --hint-bg-from: #fff6ec;
    --hint-bg-to:   #fdebd6;
    --hint-border:  #f3d3aa;
    --hint-label:   #a85b22;
    --hint-text:    #5e3110;
}

/* --- State: ready (confident green, filled icon) --- */
#ids-add-item-modal .ids-modal-hint[data-state="ready"] {
    --hint-accent:  #2f8047;
    --hint-bg-from: #f0f8f2;
    --hint-bg-to:   #e1f1e7;
    --hint-border:  #bcdec8;
    --hint-label:   #2f8047;
    --hint-text:    #1f4a2c;
}

#ids-add-item-modal .ids-modal-hint[data-state="ready"] .ids-hint-icon {
    background: var(--hint-accent);
    color: #fff;
    box-shadow:
        0 0 0 1px var(--hint-accent) inset,
        0 2px 6px rgba(47, 128, 71, 0.25);
}

/* Validation error in the footer */
#ids-add-item-modal .ids-modal-footer-error {
    display: block;
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c2c0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Highlight the variation <select> on a card when the user clicks Add
 * without picking an option. Clears as soon as they make a selection. */
.ids-product-variation-select.ids-variation-error {
    border-color: #b3261e !important;
    box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.18) !important;
    background: #fff4f3 !important;
    animation: ids-variation-shake 0.35s ease-in-out;
}

@keyframes ids-variation-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-3px); }
    75%      { transform: translateX(3px); }
}

/* Responsive: stack the footer on narrow screens */
@media (max-width: 600px) {
    #ids-add-item-modal .ids-modal-footer-bar {
        gap: 14px;
    }
    #ids-add-item-modal .ids-footer-total {
        align-items: stretch;
        text-align: center;
        width: 100%;
    }
    #ids-add-item-modal .ids-modal-footer-cta {
        width: 100%;
    }
}

/* =====================================================================
 * Modal v2 redesign — clean, professional layout with green accent.
 * Scoped to .ids-modal-v2 so it overrides the legacy modal styles.
 * ===================================================================== */

#ids-add-item-modal.ids-modal-overlay {
    background: rgba(17, 24, 28, 0.55);
}

#ids-add-item-modal .ids-modal-v2 {
    background: #fff;
    border-radius: 18px;
    max-width: 980px;
    width: 96%;
    max-height: 92vh;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(17, 24, 28, 0.08),
        0 24px 60px rgba(17, 24, 28, 0.18);
    display: flex;
    flex-direction: column;
}

/* ---------- Header ---------- */
#ids-add-item-modal .ids-modal-v2 .ids-modal-header {
    background: #fff;
    border-bottom: 1px solid #eef0f2;
    padding: 24px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#ids-add-item-modal .ids-modal-title-block {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

#ids-add-item-modal .ids-modal-title-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ecf6ee;
    color: #2f8047;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#ids-add-item-modal .ids-modal-title-icon svg {
    width: 26px;
    height: 26px;
}

#ids-add-item-modal .ids-modal-title-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

/* The legacy .ids-subscription-page-theme rules set `color: #fff !important`
 * and font-weight 400 on .ids-modal-header h3 — overrides needed to win. */
#ids-add-item-modal .ids-modal-v2 #ids-modal-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    font-family: 'Arbutus Slab', serif !important;
    line-height: 1.15 !important;
    letter-spacing: -0.2px;
    text-transform: none;
}

#ids-add-item-modal .ids-modal-subtitle {
    font-size: 16px !important;
    color: #4b5563 !important;
    font-weight: 500 !important;
    font-family: 'Poppins', 'Alegreya Sans', sans-serif !important;
    line-height: 1.3 !important;
    text-transform: none;
    letter-spacing: 0;
}

@media (max-width: 720px) {
    #ids-add-item-modal .ids-modal-v2 #ids-modal-title {
        font-size: 24px !important;
    }
    #ids-add-item-modal .ids-modal-subtitle {
        font-size: 14.5px !important;
    }
    #ids-add-item-modal .ids-modal-title-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }
    #ids-add-item-modal .ids-modal-title-icon svg {
        width: 22px;
        height: 22px;
    }
    #ids-add-item-modal .ids-modal-v2 .ids-modal-header {
        padding: 18px 20px;
    }
}

#ids-add-item-modal .ids-modal-v2 .ids-modal-close {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
#ids-add-item-modal .ids-modal-v2 .ids-modal-close:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}
#ids-add-item-modal .ids-modal-v2 .ids-modal-close svg {
    width: 20px;
    height: 20px;
}

/* ---------- Body ---------- */
#ids-add-item-modal .ids-modal-v2 > .ids-modal-body {
    padding: 18px 22px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

/* ---------- Segment tabs (rounded pill container) ---------- */
#ids-add-item-modal .ids-modal-v2 .ids-modal-mode-tabs {
    display: flex;
    gap: 0;
    background: #f7f8f9;
    border: 1px solid #e7e9ec;
    border-radius: 14px;
    padding: 6px;
    margin: 0 0 16px;
    border-bottom: 1px solid #e7e9ec;   /* override previous divider */
    padding-bottom: 6px;
}

#ids-add-item-modal .ids-modal-v2 .ids-modal-mode-tab {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: #6b7280;
    transition: all 0.18s ease;
    font-family: 'Poppins', 'Alegreya Sans', sans-serif;
}

#ids-add-item-modal .ids-modal-v2 .ids-modal-mode-tab:hover:not(.active) {
    background: #fff;
    color: #1a1a1a;
}

#ids-add-item-modal .ids-modal-v2 .ids-modal-mode-tab.active {
    background: #fff;
    border-color: #2f8047;
    color: #2f8047;
    box-shadow: 0 1px 3px rgba(47, 128, 71, 0.08);
}

#ids-add-item-modal .ids-tab-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ecf6ee;
    color: #2f8047;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#ids-add-item-modal .ids-modal-mode-tab:not(.active) .ids-tab-icon {
    background: #fff;
    color: #6b7280;
    border: 1px solid #e7e9ec;
}

#ids-add-item-modal .ids-tab-icon svg {
    width: 18px;
    height: 18px;
}

#ids-add-item-modal .ids-tab-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#ids-add-item-modal .ids-tab-title {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    color: inherit;
    text-transform: none;
    letter-spacing: 0;
}

#ids-add-item-modal .ids-tab-subtitle {
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.2;
}

#ids-add-item-modal .ids-modal-mode-tab.active .ids-tab-subtitle {
    color: #4b8a60;
}

/* ---------- Status banner ---------- */
#ids-add-item-modal .ids-modal-v2 .ids-modal-hint {
    --hint-accent:  #2f8047;
    --hint-bg-from: #f0f8f2;
    --hint-bg-to:   #e6f3eb;
    --hint-border:  #c8e0d0;
    --hint-label:   #1a1a1a;
    --hint-text:    #4b5d52;

    border-radius: 12px;
    padding: 14px 18px;
    margin: 0 0 16px;
    box-shadow: none;
    gap: 14px;
}

#ids-add-item-modal .ids-modal-v2 .ids-modal-hint::before {
    display: none;   /* no left stripe in the v2 design */
}

#ids-add-item-modal .ids-modal-v2 .ids-modal-hint .ids-hint-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    background: var(--hint-accent);
    color: #fff;
    box-shadow: none;
}
#ids-add-item-modal .ids-modal-v2 .ids-modal-hint .ids-hint-icon svg {
    width: 18px;
    height: 18px;
}

#ids-add-item-modal .ids-modal-v2 .ids-modal-hint .ids-hint-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

#ids-add-item-modal .ids-modal-v2 .ids-modal-hint .ids-hint-label {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--hint-label);
    text-transform: none;
    letter-spacing: 0;
}

#ids-add-item-modal .ids-modal-v2 .ids-modal-hint .ids-hint-text {
    font-size: 13.5px;
    font-weight: 400;
    color: var(--hint-text);
}

#ids-add-item-modal .ids-hint-change {
    flex: 0 0 auto;
    background: transparent;
    border: none;
    color: #2f8047;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 4px;
    font-family: 'Poppins', 'Alegreya Sans', sans-serif;
    text-decoration: none;
}
#ids-add-item-modal .ids-hint-change:hover {
    text-decoration: underline;
}

/* Variation state: keep amber accent but updated palette */
#ids-add-item-modal .ids-modal-v2 .ids-modal-hint[data-state="variation"] {
    --hint-accent:  #c2682e;
    --hint-bg-from: #fff6ec;
    --hint-bg-to:   #fdebd6;
    --hint-border:  #f3d3aa;
    --hint-label:   #1a1a1a;
    --hint-text:    #6b4a23;
}

/* Pick state: cooler, neutral */
#ids-add-item-modal .ids-modal-v2 .ids-modal-hint[data-state="pick"] {
    --hint-accent:  #6b7280;
    --hint-bg-from: #f7f8f9;
    --hint-bg-to:   #f0f1f3;
    --hint-border:  #e3e5e9;
    --hint-label:   #1a1a1a;
    --hint-text:    #6b7280;
}
#ids-add-item-modal .ids-modal-v2 .ids-modal-hint[data-state="pick"] .ids-hint-icon {
    background: #e3e5e9;
    color: #6b7280;
}

/* ---------- Search bar ---------- */
#ids-add-item-modal .ids-modal-v2 .ids-modal-search {
    position: relative;
    margin: 0 0 18px;
}
#ids-add-item-modal .ids-modal-search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
}
#ids-add-item-modal .ids-modal-v2 .ids-modal-search input[type="text"] {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 1.5px solid #e3e5e9;
    border-radius: 12px;
    background: #fff;
    font-size: 14.5px;
    color: #1a1a1a;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: none;
    height: auto;
}
#ids-add-item-modal .ids-modal-v2 .ids-modal-search input[type="text"]:focus {
    outline: none;
    border-color: #2f8047;
    box-shadow: 0 0 0 3px rgba(47, 128, 71, 0.12);
}

/* ---------- Product grid ---------- */
#ids-add-item-modal .ids-modal-v2 #ids-product-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin: 0;
}

#ids-add-item-modal .ids-modal-v2 .ids-product-choice {
    position: relative;
    border: 1.5px solid #e7e9ec;
    border-radius: 14px;
    padding: 8px 8px 12px;
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.06s ease;
}

#ids-add-item-modal .ids-modal-v2 .ids-product-choice:hover:not(.unavailable):not(.selected) {
    border-color: #c8d1d6;
    box-shadow: 0 4px 14px rgba(17, 24, 28, 0.08);
    transform: translateY(-1px);
}

#ids-add-item-modal .ids-modal-v2 .ids-product-choice.selected {
    border-color: #2f8047 !important;
    box-shadow:
        0 0 0 1px #2f8047 inset,
        0 6px 16px rgba(47, 128, 71, 0.18) !important;
    background: #fff;
}

/* Green check badge in top-right of selected card */
#ids-add-item-modal .ids-modal-v2 .ids-product-choice.selected::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2f8047 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L20 6.5'/></svg>") center / 16px no-repeat;
    box-shadow: 0 2px 6px rgba(47, 128, 71, 0.4);
}

#ids-add-item-modal .ids-modal-v2 .ids-product-choice img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

#ids-add-item-modal .ids-modal-v2 .ids-product-choice-name {
    margin: 10px 4px 4px;
    font-family: 'Arbutus Slab', serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    color: #1a1a1a;
    text-align: left;
}

#ids-add-item-modal .ids-modal-v2 .ids-product-choice-price {
    margin: 0 4px;
    text-align: left;
    font-size: 16px;
    color: #2f8047;
    font-weight: 700;
    font-family: 'Poppins', 'Alegreya Sans', sans-serif;
}

#ids-add-item-modal .ids-modal-v2 .ids-product-choice.selected .ids-product-choice-price {
    color: #2f8047;
}

#ids-add-item-modal .ids-modal-v2 .ids-product-choice-variation {
    padding: 6px 4px 0;
    border-top: 1px solid #f0f1f3;
    margin-top: 8px;
}
#ids-add-item-modal .ids-modal-v2 .ids-product-choice-variation label {
    margin: 0 0 4px;
    font-size: 11.5px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
#ids-add-item-modal .ids-modal-v2 .ids-product-choice .ids-product-variation-select {
    height: 36px;
    border: 1px solid #e3e5e9;
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
    font-size: 13.5px;
    width: 100%;
}

/* ---------- Footer ---------- */
#ids-add-item-modal .ids-modal-v2 > .ids-modal-footer {
    background: #fafbfc;
    border-top: 1px solid #eef0f2;
    padding: 16px 22px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 0 0 auto;
}

/* Selected product summary row */
#ids-add-item-modal .ids-selected-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e7e9ec;
    border-radius: 14px;
    padding: 12px 16px;
}

#ids-add-item-modal .ids-summary-thumb {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}
#ids-add-item-modal .ids-summary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#ids-add-item-modal .ids-summary-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#ids-add-item-modal .ids-summary-name {
    font-family: 'Arbutus Slab', serif;
    font-size: 15.5px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.25;
}

#ids-add-item-modal .ids-summary-price {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Poppins', 'Alegreya Sans', sans-serif;
}

#ids-add-item-modal .ids-summary-controls {
    flex: 0 0 auto;
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

#ids-add-item-modal .ids-summary-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
#ids-add-item-modal .ids-summary-field label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0;
    text-transform: none;
}

#ids-add-item-modal .ids-modal-v2 .ids-qty-stepper {
    background: #fff;
    border: 1px solid #e3e5e9;
    border-radius: 10px;
    overflow: hidden;
}
#ids-add-item-modal .ids-modal-v2 .ids-qty-btn {
    width: 36px;
    height: 38px;
    background: #fff;
    color: #2f8047;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}
#ids-add-item-modal .ids-modal-v2 .ids-qty-btn:hover {
    background: #f0f8f2;
}
#ids-add-item-modal .ids-modal-v2 .ids-qty-stepper input[type="number"] {
    width: 48px;
    height: 38px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    background: #fff;
}

#ids-add-item-modal .ids-modal-v2 #ids-freq {
    height: 38px;
    box-sizing: border-box;
    border: 1px solid #e3e5e9;
    border-radius: 10px;
    background: #fff;
    padding: 0 14px;
    font-size: 14px;
    color: #1a1a1a;
    min-width: 160px;
}

/* Footer bottom: total + CTA */
#ids-add-item-modal .ids-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#ids-add-item-modal .ids-footer-total-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
#ids-add-item-modal .ids-footer-total-label {
    font-size: 14px;
    color: #6b7280;
}
#ids-add-item-modal .ids-footer-total-value {
    font-family: 'Arbutus Slab', serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

/* CTA button — big, green, with arrow */
#ids-add-item-modal .ids-modal-v2 .ids-modal-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #2f8047;
    color: #fff;
    border: 1px solid #2f8047;
    border-radius: 14px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: none;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.06s ease;
    box-shadow: 0 4px 12px rgba(47, 128, 71, 0.25);
    min-width: 220px;
    width: auto;
    font-family: 'Poppins', 'Alegreya Sans', sans-serif;
}
#ids-add-item-modal .ids-modal-v2 .ids-modal-footer-cta:hover {
    background: #246840;
    box-shadow: 0 6px 18px rgba(47, 128, 71, 0.32);
}
#ids-add-item-modal .ids-modal-v2 .ids-modal-footer-cta:active {
    transform: translateY(1px);
}
#ids-add-item-modal .ids-modal-v2 .ids-modal-footer-cta:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
#ids-add-item-modal .ids-modal-v2 .ids-modal-footer-cta svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

/* Hide legacy footer row classes — replaced by the new structure */
#ids-add-item-modal .ids-modal-v2 .ids-footer-row,
#ids-add-item-modal .ids-modal-v2 .ids-modal-footer-bar {
    all: unset;
    display: contents;
}

/* Responsive */
@media (max-width: 720px) {
    #ids-add-item-modal .ids-modal-v2 #ids-product-results {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    #ids-add-item-modal .ids-selected-summary {
        flex-wrap: wrap;
    }
    #ids-add-item-modal .ids-summary-controls {
        width: 100%;
    }
    #ids-add-item-modal .ids-footer-bottom {
        flex-direction: column;
        align-items: stretch;
    }
    #ids-add-item-modal .ids-modal-v2 .ids-modal-footer-cta {
        width: 100%;
        min-width: 0;
    }
    #ids-add-item-modal .ids-modal-v2 .ids-modal-mode-tabs {
        flex-direction: column;
    }
}

/* =====================================================================
   MAYFIELD PORTAL DESIGN (deliveries.html / subscription.html)
   New design-class cards (.subscription-card / .item-card / .mf-portal-delivery).
   The legacy .ids-* card rules above no longer match the rebuilt markup.
   Uses theme CSS variables (defined on :root by the active Mayfield theme).
   ===================================================================== */
.ids-portal .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ids-portal .mf-portal-delivery { margin-bottom: var(--sp-5); }

/* Delivery section header */
.ids-portal .ids-del-head-row { align-items: center; }

.ids-portal .delivery-head {
    display: flex;
    align-items: baseline;
    gap: 0;
    flex-direction: column;
    margin: 0;
}.ids-portal .title-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 0; }

.ids-portal .delivery-head h3 { font-family: var(--font-head); font-size: 30px; font-weight: 400; margin: 0; color: #000; }
.ids-portal .delivery-head .price {  font-weight: 700; ; color: var(--teal); }
.ids-portal .tag-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.ids-portal .ids-del-cutoff, .ids-portal .ids-del-charge {
    font-size: 14px;
    color: #6e969a;
    margin: 0 0 0px;
}
.ids-portal .delivery-head .status-pill { margin-right: 2px; }
.ids-portal .ids-status-editable { background: var(--dark-green); color: #fff; }
.ids-portal .ids-status-skipped  { background: var(--sage); color: var(--dark-green); }
.ids-portal .ids-status-past_cutoff,
.ids-portal .ids-status-locked   { background: #e0ddd6; color: #6b6258; }

/* Item card (delivery item) */
.ids-portal .item-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 0; box-shadow: none;
  border-radius: 0; overflow: hidden;
  width: auto; max-width: none; flex: initial; min-height: 0;
}
.ids-portal .item-card .pc-img,
.ids-portal .item-card > .ids-product-image-placeholder {
  width: 100%; height: 132px; object-fit: cover; background: #efe7dd;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.ids-portal .item-card .ic-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; text-align: left; }
/* .ids-portal .item-card .ic-title { font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.25; margin: 0; color: #000; } */
.ids-portal .item-card .pc-divider { height: 2px; background: var(--teal); border: 0; margin: 2px 0 8px; }
.ids-portal .meta-list { display: flex; flex-direction: column; gap: 7px; }
.ids-portal .meta-list .mrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* .ids-portal .meta-list .mlbl { color: #000; font-size: 14px; } */
/* .ids-portal .meta-list .mval { font-weight: 700; font-size: 14px; color: #000; }
.ids-portal .item-card .btn-block,
.ids-portal .item-card .ic-body > .btn { margin-top: 12px; } */

/* Status pills */
/* .ids-portal .status-pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; white-space: nowrap; } */
/* .ids-portal .status-sub    { background: var(--dark-green); color: #fff; } */
.ids-portal .status-oneoff { background: var(--pink-bg); color: var(--terracotta); }
/* .ids-portal .status-skip   { background: var(--sage); color: var(--dark-green); } */

/* Quantity stepper (delivery context) */
.ids-portal .item-card .qty { display: inline-flex; align-items: center; gap: 7px; }
.ids-portal .item-card .qty button { width: 26px; height: 26px; min-width: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--pink-bg); color: #000; font-size: 16px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ids-portal .item-card .qty button:disabled { opacity: .5; cursor: default; }
.ids-portal .item-card .qty input.ids-del-qty {
  width: 42px; height: 26px; text-align: center; font-size: 14px; font-weight: 700;
  border: 1px solid var(--sage); border-radius: 5px; color: #000; padding: 0;
  -moz-appearance: textfield;
}
.ids-portal .item-card .qty input.ids-del-qty::-webkit-outer-spin-button,
.ids-portal .item-card .qty input.ids-del-qty::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }

/* Loading state while a delivery-item quantity change is saved: soft overlay +
   centred spinner; the +/- buttons are also disabled in JS. */
.ids-portal .item-card.is-updating { position: relative; pointer-events: none; }
.ids-portal .item-card.is-updating::before {
  content: ""; position: absolute; inset: 0; z-index: 4; background: rgba(255, 255, 255, 0.6);
}
.ids-portal .item-card.is-updating::after {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: 5;
  width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border: 3px solid rgba(110, 150, 154, 0.3); border-top-color: var(--teal, #6e969a);
  border-radius: 50%; animation: ids-sub-spin 0.7s linear infinite;
}

/* Add-another-item tile */
.ids-portal .ids-add-tile-card { align-items: center; justify-content: center; gap: 12px; min-height: 180px; background: var(--off-white); border: 1px dashed var(--teal); color: var(--teal); font-weight: 700; cursor: pointer; text-align: center; width: auto; max-width: none; flex: initial; }
.ids-portal .ids-add-tile-card:hover { background: #fff; }
.ids-portal .ids-add-tile-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; }

/* Skipped item overlay */
.ids-portal .skip-wrap { position: relative; }
/* .ids-portal .skip-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(250,247,245,.9); border-radius: var(--radius-lg); font-weight: 700; color: #000; } */

/* ---------- Subscription page (matches subscription.html exactly) ---------- */
.ids-portal .subscription-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.ids-portal .subscription-add-btn { background: var(--teal); border-color: var(--teal); color: #fff; }
.ids-portal .subscription-edit-btn { background: var(--brown); border-color: var(--brown); color: #fff; }
.ids-portal .ids-sub-group-label {
    font-family: var(--font-head);
    font-size: 38px;
    font-weight: 400;
    color: var(--black);
    margin: 0 0 var(--sp-2);
}.ids-portal .subscription-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; align-items: stretch; }
.ids-portal .subscription-card { background: #fff; padding: 0 0 18px; display: flex; flex-direction: column; width: auto; max-width: none; flex: initial; min-height: 0; border: 0; text-align: left; height: 100%; }
.ids-portal .subscription-card.is-cancelled { opacity: .7; }

/* Loading state while a quantity/frequency change is being saved: a soft
   overlay blocks interaction and a centred spinner shows progress. The +/-
   buttons are also disabled in JS so a click burst can't queue extra requests. */
.ids-portal .subscription-card.is-updating { position: relative; pointer-events: none; }
.ids-portal .subscription-card.is-updating::before {
  content: ""; position: absolute; inset: 0; z-index: 4;
  background: rgba(255, 255, 255, 0.6);
}
.ids-portal .subscription-card.is-updating::after {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: 5;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 3px solid rgba(110, 150, 154, 0.3);
  border-top-color: var(--teal, #6e969a);
  border-radius: 50%;
  animation: ids-sub-spin 0.7s linear infinite;
}
@keyframes ids-sub-spin { to { transform: rotate(360deg); } }
.ids-portal .subscription-img { width: 100%; height: 230px; object-fit: cover; margin-bottom: 12px; background: #efe7dd; display: block; max-height: none; aspect-ratio: auto; border-radius: 0; }
/* .ids-portal .subscription-title { font-family: var(--font-body); font-size: 17px; line-height: 1.25; font-weight: 700; color: #000; margin: 0 12px 8px; padding-bottom: 8px; border-bottom: 1px solid var(--teal); text-align: left; } */
.ids-portal .subscription-variation { font-size: 13px; color: #5b5249; margin: -4px 12px 6px; }
.ids-portal .subscription-info-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 12px; padding: 5px 0; border-bottom: 1px solid var(--sage); font-size: 15px; line-height: 1.2; }
.ids-portal .subscription-info-row span { color: #000; font-weight: 400; }
.ids-portal .subscription-info-row strong { color: #000; font-size: 14px; font-weight: 700; white-space: nowrap; }
.ids-portal .subscription-qty-row { align-items: center; }
.ids-portal .subscription-card .qty { display: inline-flex; align-items: center; gap: 5px; }
/* .ids-portal .subscription-card .qty button { width: 18px; height: 18px; min-width: 18px; background: var(--pink-bg); color: #000; font-size: 13px; line-height: 1; padding: 0; border: 0; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; } */
/* .ids-portal .subscription-card .qty input { width: 30px; height: 22px; font-size: 12px; text-align: center; border: 1px solid var(--sage); border-radius: 5px; font-weight: 700; -moz-appearance: textfield; } */
.ids-portal .subscription-card .qty input::-webkit-outer-spin-button,
.ids-portal .subscription-card .qty input::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
.ids-portal .subscription-frequency-row { border-bottom: 0; }
.ids-portal .subscription-frequency-select { width: 180px; height: 28px; min-height: 28px; padding: 0 26px 0 10px; border: 1px solid var(--sage); border-radius: 6px; background: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #000; }
/* .ids-portal .subscription-cancel-btn { width: calc(100% - 24px); height: 34px; margin: auto 12px 0; padding: 0 16px; } */
.ids-portal .ids-seasonal-notice { font-size: 14px; color: var(--dark-green); font-weight: 600; margin: 6px 12px 0; }
/* .ids-portal .ids-sub-freq { font-size: 14px; margin: 6px 12px 0; } */

@media (max-width: 980px) { .ids-portal .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
    .ids-portal .ids-del-cutoff, .ids-portal .ids-del-charge {
    font-size: 14px;
    color: #5b5249;
    margin: 0 0 0px;
}
#ids-deliveries-list .pc-divider {
    margin-bottom: 20px;
    display: none;
}
  .ids-portal .subscription-grid { grid-template-columns: 1fr; gap: 22px; }
  .ids-portal .subscription-img { height: 210px; }
}
@media (max-width: 600px) {
  .ids-portal .grid-3 { grid-template-columns: 1fr; }
  .ids-portal .ids-del-head-row { align-items: flex-start; }
}

/* ---------- Delivery free-delivery tile + instructions strip (deliveries.html) ---------- */
.ids-portal .mf-delivery-tile .mf-delivery-tile-head {
  height: 132px;
  background: #b3a39b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ids-portal .mf-delivery-tile .mf-delivery-tile-head svg { width: 60px; height: 60px; color: #fff; }
.ids-portal .mf-delivery-tile .mf-delivery-tile-note { font-size: 15px; line-height: 1.4; margin: 12px 0 0; color: #5b5249; }

.ids-portal .mf-delivery-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: var(--sp-4);
}
.ids-portal .mf-del-strip-icon { flex: none; line-height: 0; }
.ids-portal .mf-del-strip-icon img {
    width: 30px;
}
.ids-portal .mf-del-strip-icon svg { width: 30px; height: 30px; color: var(--sage); }
.ids-portal .mf-del-strip-text {  font-size: 15px; color: #000; line-height: 1.4; }
.ids-portal .mf-del-strip-label { color: var(--teal); font-weight: 700; letter-spacing: .02em; }
.ids-portal .mf-edit-instr {
  flex: none;
  background: var(--pink-bg);
  color: #000;
  border: 0;
  border-radius: var(--radius);
}
.ids-portal .mf-edit-instr:hover { filter: brightness(.97); }
@media (max-width: 600px) {
  .ids-portal .mf-delivery-strip { flex-wrap: wrap; }
  .ids-portal .mf-del-strip-text { flex: 1 1 100%; order: 3; }
}

/* ---------- Neutralize legacy portal wrapper boxes ----------
   The design shows ONLY the .paper-panel sections as boxes. The legacy
   nested wrappers (.ids-subscription-page-theme + .ids-portal-content-shell +
   .ids-tab-panel) each had their own cream background/border/padding which
   stacked into vertical lines on the left. Make them transparent so only the
   sections are boxes (on the page background, like deliveries.html). */
.ids-portal.ids-subscription-page-theme {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  max-width: none;
  margin: 0;
}
.ids-portal .ids-portal-content-shell,
.ids-portal .ids-tab-panel,
.ids-portal .ids-theme-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

/* ---------- Card definition: subtle soft shadow so the white cards read as
   distinct boxes on the off-white panel (no hard border / vertical line). ---------- */
.ids-portal .item-card,
.ids-portal .subscription-card {
  border: 1px solid #e7ddd1;
  box-shadow: 0 3px 10px rgba(40, 30, 20, 0.08);
}

/* ---------- Delivery header action buttons — design colors (override legacy
   .ids-skip-all-btn etc. which forced a dark slate background). ---------- */
.ids-portal .tag-actions .btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.ids-portal .tag-actions .btn-brown { background: var(--brown); border-color: var(--brown); color: #fff; }
.ids-portal .tag-actions .btn-orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.ids-portal .tag-actions .btn-teal:hover,
.ids-portal .tag-actions .btn-brown:hover,
.ids-portal .tag-actions .btn-orange:hover { filter: brightness(1.06); }

/* Delivery sections — clear separation between consecutive boxes. */
.ids-portal .mf-portal-delivery { margin-bottom: 34px; }
.ids-portal .mf-portal-delivery:last-child { margin-bottom: 0; }

/* ===================================================================
   DELIVERIES — design-exact (deliveries.html). Last block wins.
   Cards: NO outer border (design uses white card + internal dividers +
   image + gap). The structure comes from the teal title rule + sage
   meta-row dividers, so no outer "vertical line" is needed.
   =================================================================== */
.ids-portal .item-card,
.ids-portal .mf-delivery-tile {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  min-height: 270px;
}
.ids-portal .item-card .pc-img,
.ids-portal .item-card > .ids-product-image-placeholder { height: 132px; }
.ids-portal .item-card .ic-body { padding: 8px 12px 12px; gap: 0; }
/* .ids-portal .item-card .ic-title {
  font-size: 14px; line-height: 1.25; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
} */
.ids-portal .item-card .pc-divider { background: var(--teal); margin: 2px 0 4px; }
.ids-portal .item-card .meta-list { gap: 0; }
.ids-portal .item-card .meta-list .mrow {
  padding: 5px 0; gap: var(--sp-2);
  border-bottom: 1px solid var(--sage);
}
.ids-portal .item-card .meta-list .mrow:last-child { border-bottom: 0; }
/* .ids-portal .item-card .meta-list .mlbl,
.ids-portal .item-card .meta-list .mval { font-size: 13px; line-height: 1.2; } */

/* Status = plain text (design active CSS, not a coloured pill) */
/* .ids-portal .item-card .status-pill,
.ids-portal .item-card .status-sub,
.ids-portal .item-card .status-oneoff,
.ids-portal .item-card .status-skip {
  background: transparent; color: #000;
  padding: 0; border-radius: 0;
  font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none;
} */

/* Skip item button = orange outline (design) */
/* .ids-portal .item-card .btn-outline {
  height: 30px; margin-top: 8px; padding: 0 12px;
  background: transparent; border: 1px solid var(--orange); color: var(--orange);
  border-radius: 5px; font-size: 10px; letter-spacing: .18em;
} */

/* Header "Skip delivery" = terracotta outline (design uses btn-outline;
   override the legacy .ids-skip-all-btn dark-slate background). */
.ids-portal .tag-actions .btn-outline {
  background: transparent !important;
  border: 1px solid var(--terracotta) !important;
  color: var(--terracotta) !important;
}

/* Delivery (free-delivery) tile: white card + taupe icon bar */
.ids-portal .mf-delivery-tile .mf-delivery-tile-head { height: 132px; background: #b89a88; }
.ids-portal .mf-delivery-tile .mf-delivery-tile-head svg { width: 80px; height: 80px; color: #fff; }
.ids-portal .mf-delivery-tile .ic-body { padding: 8px 12px 12px; }
.ids-portal .mf-delivery-tile .mf-delivery-tile-note { font-size: 13px; color: #000; line-height: 1.35; margin-top: 8px; }

/* Delivery-instructions strip (design): teal inline label + small teal Edit */
.ids-portal .mf-delivery-strip { gap: 12px; padding: 9px 14px; }
.ids-portal .mf-del-strip-icon svg { width: 26px; height: 26px; color: var(--teal); }
.ids-portal .mf-del-strip-text { font-size: 14px; }
.ids-portal .mf-del-strip-label { color: var(--teal); font-weight: 700; font-size: 13px; text-transform: none; letter-spacing: 0; margin-right: 4px; }
.ids-portal .mf-edit-instr {
    background: var(--pink-bg);
    color: #000;
    border: 0;
    padding: 6px 8px;
}

/* ---------------------------------------------------------------------------
   Subscription "Edit subscription details" box — MOBILE ONLY (desktop keeps the
   standalone "Edit subscription account" button). 2×2 grid: Billing / Payment /
   Shipping / Cancel. min-width:0 stops grid columns blowing out of the box.
   --------------------------------------------------------------------------- */
.ids-portal .subscription-edit-box { display: none; }
.ids-portal .subscription-edit-title { font-weight: 700; font-size: 16px; margin: 0 0 12px; color: #000; }
.ids-portal .subscription-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ids-portal .subscription-edit-grid .btn {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 13px 6px;
  font-size: 11px;
  letter-spacing: .05em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
.ids-portal .subscription-edit-box {
    display: block;
    position: relative;
    background: var(--off-white);
    padding: 20px 15px;
    margin-bottom: 26px;
    width: 100%;
    border-bottom: 0;
    border-top: 0;
}
 .ids-portal .paper-panel {
   padding: 15px;
}
.ids-portal .subscription-edit-grid .btn {
    min-width: 0;
    box-sizing: border-box;
    padding: 13px 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    letter-spacing: 0.14em;
}
  .ids-portal .subscription-actions .subscription-add-btn { width: 100%; }
  .ids-portal .subscription-actions .subscription-edit-btn { display: none; }
}

/* The overlapping zig-zag was global.css's torn-edge ::after on
   #ids-subscriptions-list ITSELF — the list isn't positioned, so its absolute
   ::after floated across the cards. Disable ONLY that one. The card panel's own
   positioned .paper-panel::after stays → intended torn edge BELOW the section. */
#ids-subscriptions-list::after { display: none !important; }

/* ---------- Per-item scope toggle (Add Items footer) ---------- */
#ids-add-item-modal .ids-item-scope { display: flex; gap: 8px; margin: 0 0 12px; }
#ids-add-item-modal .ids-item-scope-opt {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
    cursor: pointer; text-align: center;
    border: 1px solid #d8dde0; background: #fff; border-radius: 10px; padding: 10px 12px;
    font-family: var(--font-body, "Open Sans", sans-serif);
}
#ids-add-item-modal .ids-item-scope-opt:hover:not(.active) { border-color: #b7c0c4; }
#ids-add-item-modal .ids-item-scope-opt .ids-item-scope-title { font-size: 14px; font-weight: 700; color: #2c3742; }
#ids-add-item-modal .ids-item-scope-opt .ids-item-scope-sub { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8b939a; }
#ids-add-item-modal .ids-item-scope-opt.active { border-color: var(--teal, #6e969a); background: var(--teal, #6e969a); }
#ids-add-item-modal .ids-item-scope-opt.active .ids-item-scope-title,
#ids-add-item-modal .ids-item-scope-opt.active .ids-item-scope-sub { color: #fff; }

/* ---------- Per-delivery instructions editor ---------- */
#ids-instructions-modal .ids-instr-help { font-size: 13px; color: #6b7280; margin: 0 0 10px; }
#ids-instructions-modal .ids-instr-textarea {
    width: 100%; min-height: 96px; box-sizing: border-box; resize: vertical;
    border: 1px solid #d8dde0; border-radius: 10px; padding: 10px 12px;
    font-family: var(--font-body, "Open Sans", sans-serif); font-size: 14px; color: #1a1a1a;
}
.ids-portal .mf-instr-badge {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--teal, #6e969a); border: 1px solid var(--teal, #6e969a); border-radius: 999px; padding: 1px 7px; margin: 0 4px;
}

#ids-instructions-modal .ids-instr-default-link { margin: 12px 0 0; font-size: 13px; color: #6b7280; text-align: center; }
#ids-instructions-modal .ids-instr-default-link a { color: var(--teal, #6e969a); font-weight: 600; text-decoration: none; }
#ids-instructions-modal .ids-instr-default-link a:hover { text-decoration: underline; }
.ids-portal .mf-instr-default-note { color: #9aa0a6; font-size: 12px; font-style: italic; margin-left: 4px; }

/* ---------------------------------------------------------------------------
 * Delivery-address switcher (multi-address). Shown above the portal content
 * only when the customer has more than one delivery address.
 * ------------------------------------------------------------------------- */
.ids-address-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    flex-wrap: wrap;
}
.ids-address-switcher-label {
    font-weight: 700;
    color: var(--dark-green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    margin: 0;
}
.ids-address-select-wrap {
    position: relative;
    flex: 1 1 auto;
    max-width: 440px;
    min-width: 240px;
}
.ids-address-select {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid rgba(0, 71, 59, 0.25);
    border-radius: 10px;
    background: #fff;
    color: var(--dark-green);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}
.ids-address-select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(110, 150, 154, 0.25);
}
.ids-address-select-wrap::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--dark-green);
    border-bottom: 2px solid var(--dark-green);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

/* --- Multi-address: single-address label + Manage button in the address bar --- */
.ids-address-single {
    flex: 1 1 auto;
    min-width: 200px;
    color: var(--dark-green);
    font-size: 15px;
    font-weight: 600;
}
.ids-manage-addresses-btn {
    background: none;
    border: 0;
    padding: 6px 4px;
    color: var(--teal);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.ids-manage-addresses-btn:hover { color: var(--dark-green); }

/* --- Manage addresses modal --- */
.ids-addresses-intro { color: #55635c; font-size: 14px; margin: 0 0 16px; }
.ids-addresses-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.ids-address-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 71, 59, 0.15);
    border-radius: 12px;
    background: var(--off-white, #faf7f5);
    flex-wrap: wrap;
}
.ids-address-card-name {
    font-weight: 700;
    color: var(--dark-green);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ids-address-card-line { color: #55635c; font-size: 14px; margin-top: 3px; }
.ids-addr-day { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--teal); font-weight: 600; }
.ids-addr-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--dark-green);
    padding: 2px 8px;
    border-radius: 20px;
}
.ids-address-card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* --- Address form: postcode feedback + optional hint --- */
.ids-optional { color: #9aa39d; font-weight: 400; font-size: 12px; }
.ids-postcode-msg { display: block; margin-top: 6px; font-size: 13px; color: #666; min-height: 1em; }
.ids-postcode-msg.is-ok { color: #2e7d32; }
.ids-postcode-msg.is-error { color: #c0392b; }

.ids-empty-add-btn { margin-top: 18px; }

/* Brief highlight on the per-item Cancel button when the customer clicks the
   top "Cancel an item" helper, so the real control is obvious (client
   feedback 2026-10-09: the cancel flow was confusing). */
.ids-portal .ids-cancel-flash {
  animation: ids-cancel-flash 1.6s ease-out;
}
@keyframes ids-cancel-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 122, 58, 0); }
  25% { box-shadow: 0 0 0 4px rgba(224, 122, 58, 0.55); }
}

/* Add-item "First delivery" picker: the customer chooses when a new recurring
   item first arrives (client 2026-10-09 — previously a read-only line that
   forced the engine's default start). */
.ids-portal .ids-first-delivery .ids-first-delivery-select,
#ids-add-item-modal .ids-first-delivery-select {
  height: 34px;
  border: 1px solid var(--sage);
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
  font-size: 13px;
  color: #000;
  max-width: 220px;
}
