.grw-admin {
    --grw-brand: #1E3A8A;
    --grw-accent: #2563EB;
    --grw-accent-light: #EFF6FF;
    --grw-brand-light: #EFF6FF;
    --grw-brand-border: #BFDBFE;
    --grw-selected: #16A34A;
    --grw-selected-strong: #15803D;
    --grw-surface: #fff;
    --grw-surface-muted: #F8FAFC;
    --grw-border: #E2E8F0;
    --grw-border-strong: #CBD5E1;
    --grw-text: #0F172A;
    --grw-text-muted: #64748B;
    --grw-radius: 10px;
    --grw-radius-sm: 6px;
    --grw-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.04);
    max-width: 1200px;
    margin-top: 12px;
}

.grw-admin .notice.grw-upgrade-banner {
    border-left-color: var(--grw-brand);
    background: var(--grw-brand-light);
    margin: 0 0 16px;
}

/* Hero */
.grw-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--grw-brand-light) 0%, #fff 55%);
    border: 1px solid var(--grw-brand-border);
    border-radius: var(--grw-radius);
    box-shadow: var(--grw-shadow);
}

.grw-hero__brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex: 1;
}

.grw-hero__logo {
    display: block;
    width: 200px;
    height: auto;
    max-width: 100%;
    flex-shrink: 0;
    object-fit: contain;
}

.grw-hero__tagline {
    margin: 0;
    color: var(--grw-text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 42ch;
}

/* Admin UI badges (scoped name avoids clashing with widget .grw-badge previews) */
.grw-admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.3;
    white-space: nowrap;
}

.grw-admin-badge--plan {
    background: #F1F5F9;
    color: var(--grw-text-muted);
    border: 1px solid var(--grw-border);
}

.grw-admin-badge--linked {
    background: var(--grw-brand-light);
    color: var(--grw-brand);
    border-color: var(--grw-brand-border);
}

.grw-admin-badge--active {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    margin-left: 8px;
    text-transform: none;
    font-size: 10px;
}

.grw-admin-badge--upgrade {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    margin-top: 6px;
}

.grw-admin-badge--free-account {
    background: #2563EB;
    color: #fff;
    border: 1px solid #1D4ED8;
}

.grw-admin-badge--site {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    color: #fff;
    border: 1px solid #6D28D9;
}

.grw-layout-summary {
    margin: 0 0 10px;
    color: var(--grw-text-muted);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.grw-widget-limit-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 16px 0 18px;
    padding: 14px 16px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-left: 3px solid #2563EB;
    border-radius: 7px;
}

.grw-widget-limit-card__copy {
    min-width: 0;
    flex: 1;
}

.grw-widget-limit-card__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1E3A8A;
    line-height: 1.35;
}

.grw-widget-limit-card__body {
    margin: 4px 0 0;
    font-size: 13px;
    color: #475467;
    line-height: 1.45;
}

.grw-widget-limit-card__action {
    flex-shrink: 0;
}

.grw-widget-limit-card__cta {
    margin: 0 !important;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .grw-widget-limit-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .grw-widget-limit-card__action .button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.grw-layout-card--browse {
    cursor: pointer;
    border-width: 2px;
    border-color: var(--grw-border);
    background: var(--grw-surface);
}

.grw-layout-card--browse:hover,
.grw-layout-card--browse:focus-visible {
    border-color: var(--grw-brand-border);
    background: var(--grw-accent-light);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
    outline: none;
}

.grw-layout-card--browse .grw-layout-card__mock {
    filter: none;
}

.grw-layout-card--locked {
    position: relative;
    overflow: hidden;
}

/* Reserved header strip on every layout card (SELECTED / FREE WITH ACCOUNT / SITE PLAN / empty) */
.grw-layout-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 26px;
    margin: 0 0 6px;
    padding: 0 1px;
    flex-shrink: 0;
}

.grw-layout-card--selectable .grw-layout-card__header {
    justify-content: flex-end;
}

.grw-layout-card--locked .grw-layout-card__preview {
    position: relative;
}

.grw-layout-card--locked .grw-layout-card__pill {
    position: static;
    z-index: auto;
    margin: 0;
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.03em;
    border-radius: 999px;
    padding: 0.22rem 0.5rem;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
    text-transform: uppercase;
    pointer-events: none;
    max-width: calc(100% - 28px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
}

.grw-layout-card--locked .grw-layout-card__icon {
    position: static;
    z-index: auto;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.96);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
    pointer-events: none;
}

/* User-plus / link-account icon for free-with-account cards */
.grw-layout-card__icon--account {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231D4ED8'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-5 6a5 5 0 0 1 10 0v1H3v-1z'/%3E%3Cpath d='M13 3v2h2v1h-2v2h-1V6h-2V5h2V3h1z'/%3E%3C/svg%3E");
}

/* Padlock for Site plan cards */
.grw-layout-card__icon--lock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236D28D9'%3E%3Cpath d='M8 1a3 3 0 0 0-3 3v2H4a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-1V4a3 3 0 0 0-3-3zm-1.5 5V4a1.5 1.5 0 1 1 3 0v2h-3z'/%3E%3C/svg%3E");
}

.grw-layout-card__hover-hint {
    display: none;
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 34px;
    z-index: 7;
    padding: 0.28rem 0.45rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.grw-layout-card--locked:hover .grw-layout-card__hover-hint {
    display: block;
}

/* Back-compat if older markup still uses absolute __lock */
.grw-layout-card--locked .grw-layout-card__lock {
    position: static;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236D28D9'%3E%3Cpath d='M8 1a3 3 0 0 0-3 3v2H4a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-1V4a3 3 0 0 0-3-3zm-1.5 5V4a1.5 1.5 0 1 1 3 0v2h-3z'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
    pointer-events: none;
}

/* Layout grid */
.grw-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: start;
}

.grw-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Panels */
.grw-panel {
    background: var(--grw-surface);
    border: 1px solid var(--grw-border);
    border-radius: var(--grw-radius);
    box-shadow: var(--grw-shadow);
    padding: 20px 24px 24px;
}

.grw-panel__header {
    margin-bottom: 16px;
}

.grw-panel__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--grw-text);
}

.grw-panel__subtitle {
    margin: 4px 0 0;
    color: var(--grw-text-muted);
    font-size: 0.875rem;
}

.grw-panel__header--create {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.grw-first-widget {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.grw-first-widget__art {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #F3F7FF;
}

.grw-first-widget__art svg {
    display: block;
    width: 48px;
    height: 48px;
}

.grw-first-widget__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--grw-text, #101828);
}

.grw-first-widget__text {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--grw-text-muted, #667085);
}

.grw-field__hint--layout {
    margin-top: 2px;
    margin-bottom: 0;
}

.grw-layout-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 20px;
}

.grw-layout-filters__btn {
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.grw-layout-filters__btn.is-active {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1D4ED8;
}

.grw-layout-filters__btn:hover,
.grw-layout-filters__btn:focus {
    border-color: #93C5FD;
    color: #1D4ED8;
}

.grw-setup-help {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #E6E8EE;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.grw-setup-help__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #EFF6FF;
    color: #2563EB;
}

.grw-setup-help__icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.grw-setup-help__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--grw-text, #101828);
}

.grw-setup-help__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    color: #2563EB;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.grw-setup-help__link:hover,
.grw-setup-help__link:focus {
    text-decoration: underline;
}

.grw-setup-help__text {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--grw-text-muted, #667085);
}

.grw-create-panel__hide {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.grw-create-panel__hide:hover,
.grw-create-panel__hide:focus {
    color: #1d4ed8;
}

/* —— Widget library (dashboard list) —— */
.grw-panel--widgets.grw-widget-library {
    background: #FFFFFF;
    border: 1px solid #DDE2E8;
    border-radius: 9px;
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.05);
    padding: 20px;
}

.grw-widget-library__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.grw-widget-library__title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #101828;
    line-height: 1.25;
}

.grw-widget-library__subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    color: #667085;
    line-height: 1.4;
}

.grw-widget-library__header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.grw-widget-library__create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    background: #FFFFFF;
    border: 1px solid #2563EB;
    border-radius: 6px;
    color: #2563EB;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
}

.grw-widget-library__create:hover,
.grw-widget-library__create:focus {
    background: #EFF6FF;
    border-color: #1D4ED8;
    color: #1D4ED8;
}

.grw-widget-library__create:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

.grw-widget-library__create:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.grw-widget-library__search-wrap {
    position: relative;
    margin: 0 0 16px;
}

.grw-widget-library__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 1;
}

.grw-widget-library__search {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 14px 0 42px !important;
    background: #FFFFFF;
    border: 1px solid #DDE2E8;
    border-radius: 6px;
    color: #101828;
    font-size: 14px;
    line-height: 40px;
    box-shadow: none;
    box-sizing: border-box;
}

.grw-widget-library__search::placeholder {
    color: #98A2B3;
}

.grw-widget-library__search:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.grw-widget-library__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.grw-widget-row {
    display: grid;
    grid-template-columns: 190px minmax(180px, 1fr) 130px 70px auto;
    align-items: center;
    gap: 16px;
    min-height: 82px;
    padding: 10px 14px;
    margin: 0;
    background: #FFFFFF;
    border: 1px solid #E1E5EA;
    border-radius: 7px;
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.grw-widget-row:hover,
.grw-widget-row:focus-within {
    background: #F8FBFF;
    border-color: #BFDBFE;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.06);
}

.grw-widget-row[hidden] {
    display: none;
}

.grw-widget-row__thumb {
    width: 190px;
    height: 62px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #F8FAFC;
    border: 1px solid #E8EBEF;
    border-radius: 6px;
    position: relative;
    pointer-events: none;
    flex-shrink: 0;
}

.grw-widget-row__mock {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.grw-widget-row__identity {
    min-width: 0;
    text-align: left;
}

.grw-widget-row__name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #101828;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grw-widget-row__business {
    margin: 3px 0 0;
    font-size: 13px;
    color: #667085;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grw-widget-row__layout {
    margin: 0;
    font-size: 13px;
    color: #475467;
    line-height: 1.3;
}

.grw-widget-row__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    justify-self: start;
}

.grw-widget-row__status--live {
    color: #067647;
    background: #ECFDF3;
    border-color: #ABEFC6;
}

.grw-widget-row__status--draft {
    color: #475467;
    background: #F2F4F7;
    border-color: #D0D5DD;
}

.grw-widget-row__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

.grw-widget-row__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #DDE2E8;
    background: #FFFFFF;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    white-space: nowrap;
}

.grw-widget-row__btn .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
    margin: 0;
}

.grw-widget-row__btn:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

.grw-widget-row__btn--preview:hover,
.grw-widget-row__btn--preview:focus,
.grw-widget-row__btn--icon:hover,
.grw-widget-row__btn--icon:focus {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #101828;
}

.grw-widget-row__btn--icon {
    width: 38px;
    padding: 0;
}

.grw-widget-row__menu-toggle .dashicons-ellipsis {
    transform: rotate(90deg);
}

.grw-widget-row__btn--edit {
    height: 38px;
    padding: 0 14px;
    background: #FFFFFF;
    border-color: #2563EB;
    color: #2563EB;
}

.grw-widget-row__btn--edit:hover,
.grw-widget-row__btn--edit:focus {
    background: #EFF6FF;
    border-color: #1D4ED8;
    color: #1D4ED8;
}

.grw-widget-row__menu {
    position: relative;
}

.grw-widget-row__menu-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 20;
    min-width: 180px;
    padding: 6px;
    background: #FFFFFF;
    border: 1px solid #DDE2E8;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}

.grw-widget-row__menu-panel[hidden] {
    display: none;
}

.grw-widget-row__menu-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #344054;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.grw-widget-row__menu-item:hover,
.grw-widget-row__menu-item:focus {
    background: #F8FAFC;
    color: #101828;
    outline: none;
}

.grw-widget-row__menu-item--danger {
    margin-top: 4px;
    border-top: 1px solid #E1E5EA;
    border-radius: 0 0 6px 6px;
    color: #B42318;
}

.grw-widget-row__menu-item--danger:hover,
.grw-widget-row__menu-item--danger:focus {
    background: #FEF3F2;
    color: #912018;
}

.grw-widget-library__empty-filter {
    margin: 16px 0 0;
    padding: 16px;
    text-align: center;
    color: #667085;
    font-size: 14px;
    background: #F8FAFC;
    border: 1px dashed #DDE2E8;
    border-radius: 7px;
}

.grw-widget-library__install {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 4px 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #475569;
}

.grw-widget-library__install-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #DBEAFE;
    color: #1D4ED8;
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
}

.grw-widget-library__install-text {
    margin: 0;
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.4;
    color: #1D4ED8;
}

.grw-widget-library__install-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    color: #1D4ED8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.grw-widget-library__install-link:hover,
.grw-widget-library__install-link:focus {
    text-decoration: underline;
    color: #1E40AF;
}

.grw-widget-library__install-link .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 1;
}

.grw-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.grw-confirm-modal[hidden] {
    display: none;
}

.grw-confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.grw-confirm-modal__panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 22px 22px 18px;
    background: #FFFFFF;
    border: 1px solid #DDE2E8;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.18);
}

.grw-confirm-modal__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #101828;
}

.grw-confirm-modal__body {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #475467;
}

.grw-confirm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.grw-confirm-modal__actions--leave {
    flex-wrap: wrap;
    align-items: center;
}

.grw-confirm-modal__actions--leave .grw-confirm-modal__btn--discard {
    margin-right: auto;
}

.grw-confirm-modal__btn {
    height: 38px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid #DDE2E8;
    background: #FFFFFF;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.grw-confirm-modal__btn:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

.grw-confirm-modal__btn--cancel:hover,
.grw-confirm-modal__btn--discard:hover {
    background: #F8FAFC;
}

.grw-confirm-modal__btn--primary {
    background: #2563EB;
    border-color: #2563EB;
    color: #FFFFFF;
}

.grw-confirm-modal__btn--primary:hover,
.grw-confirm-modal__btn--primary:focus {
    background: #1D4ED8;
    border-color: #1D4ED8;
    color: #FFFFFF;
}

.grw-confirm-modal__btn--primary:disabled,
.grw-confirm-modal__btn--discard:disabled,
.grw-confirm-modal__btn--cancel:disabled {
    opacity: 0.7;
    cursor: wait;
}

.grw-confirm-modal__btn--danger {
    background: #D92D20;
    border-color: #D92D20;
    color: #FFFFFF;
}

.grw-confirm-modal__btn--danger:hover,
.grw-confirm-modal__btn--danger:focus {
    background: #B42318;
    border-color: #B42318;
    color: #FFFFFF;
}

.grw-confirm-modal__btn--danger:disabled {
    opacity: 0.7;
    cursor: wait;
}

@media (max-width: 1280px) {
    .grw-widget-row {
        grid-template-columns: 150px minmax(160px, 1fr) 110px 65px auto;
    }

    .grw-widget-row__thumb {
        width: 150px;
    }
}

@media (max-width: 960px) {
    .grw-widget-row {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 12px;
    }

    .grw-widget-row__layout,
    .grw-widget-row__status,
    .grw-widget-row__actions {
        grid-column: 2;
    }

    .grw-widget-row__actions {
        justify-content: flex-start;
    }

    .grw-widget-library__install {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .grw-widget-row {
        grid-template-columns: 1fr;
    }

    .grw-widget-row__thumb {
        width: 100%;
        height: 72px;
    }

    .grw-widget-row__layout,
    .grw-widget-row__status,
    .grw-widget-row__actions {
        grid-column: 1;
    }
}

/* Empty state */
.grw-empty {
    text-align: center;
    padding: 32px 20px;
    background: var(--grw-surface-muted);
    border: 1px dashed var(--grw-border-strong);
    border-radius: var(--grw-radius-sm);
}

.grw-empty--getting-started {
    margin: 12px 0 0;
    padding: 16px 16px 14px;
}

.grw-empty__art {
    margin-bottom: 10px;
}

.grw-empty--getting-started .grw-empty__art svg {
    display: block;
    width: 132px;
    height: 78px;
    margin: 0 auto;
}

.grw-empty__title {
    margin: 0 0 6px;
    font-size: 1rem;
    color: var(--grw-text);
}

.grw-empty__text {
    margin: 0 auto 8px;
    max-width: 46ch;
    color: var(--grw-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.grw-empty--error {
    text-align: left;
    border-style: solid;
    border-color: #fecaca;
    background: #fff7f7;
}

.grw-empty--error .grw-empty__title {
    color: #991b1b;
}

.grw-empty--error .grw-empty__text {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.grw-empty__actions {
    margin: 12px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Widget table */
.grw-table-wrap {
    border: 1px solid var(--grw-border);
    border-radius: var(--grw-radius-sm);
    overflow: hidden;
    background: var(--grw-surface);
}

.grw-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.grw-table {
    margin: 0;
    border: 0;
    border-collapse: collapse;
    width: 100%;
    background: var(--grw-surface);
}

.grw-table thead th {
    background: var(--grw-surface-muted);
    color: var(--grw-text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 14px;
    border-bottom: 1px solid var(--grw-border);
}

.grw-table tbody td {
    padding: 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--grw-border);
}

.grw-table tbody tr:last-child td {
    border-bottom: 0;
}

/*
 * Check column: match WP list-table markup (input + sibling label, thead uses td not th).
 * Avoids .widefat th input { margin-left: 8px; vertical-align: text-top } and
 * .check-column label { position: absolute } when the label wrapped the checkbox.
 */
.grw-admin .grw-table .check-column,
.grw-admin .grw-table .grw-table__check-col {
    position: relative;
    width: 40px;
    padding: 14px 8px !important;
    text-align: center;
    vertical-align: middle !important;
}

.grw-admin .grw-table.widefat thead td.check-column,
.grw-admin .grw-table.widefat thead td.grw-table__check-col,
.grw-admin .grw-table.widefat tbody td.check-column,
.grw-admin .grw-table.widefat tbody td.grw-table__check-col {
    padding: 14px 8px !important;
    vertical-align: middle !important;
}

.grw-admin .grw-table .check-column input[type="checkbox"],
.grw-admin .grw-table .grw-table__check-col input[type="checkbox"] {
    margin: 0 !important;
    float: none !important;
    position: relative;
    z-index: 1;
    vertical-align: middle;
    display: inline-block;
}

.grw-admin .grw-table .check-column label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    background: transparent !important;
}

.grw-admin .grw-table .check-column label:hover,
.grw-admin .grw-table .check-column input:hover + label {
    background: transparent !important;
}

.grw-admin .grw-table .check-column input[type="checkbox"]:focus,
.grw-admin .grw-table .grw-table__check-col input[type="checkbox"]:focus {
    outline: 2px solid var(--grw-brand);
    outline-offset: 1px;
    box-shadow: none;
}

.grw-admin .grw-table .check-column .label-covers-full-cell:hover + input:not(:disabled) {
    box-shadow: none;
}

.grw-bulk-bar {
    margin-bottom: 12px;
    border: 1px solid var(--grw-brand-border);
    border-radius: var(--grw-radius-sm);
    background: var(--grw-brand-light);
    box-shadow: var(--grw-shadow);
}

.grw-bulk-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
}

.grw-bulk-bar__summary {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--grw-text);
}

.grw-bulk-bar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.grw-bulk-bar__delete {
    color: #B91C1C !important;
    border-color: #FECACA !important;
    background: #FEF2F2 !important;
}

.grw-bulk-bar__delete:hover,
.grw-bulk-bar__delete:focus {
    color: #991B1B !important;
    border-color: #FCA5A5 !important;
    background: #FEE2E2 !important;
}

.grw-bulk-bar__delete:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.grw-table__business strong {
    display: inline;
}

.grw-layout-tag {
    display: inline-block;
    padding: 3px 8px;
    background: var(--grw-surface-muted);
    border: 1px solid var(--grw-border);
    border-radius: 4px;
    font-size: 12px;
    color: var(--grw-text);
}

.grw-shortcode-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
    max-width: 360px;
}

.grw-admin .grw-shortcode-input {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--grw-border) !important;
    border-radius: var(--grw-radius-sm) !important;
    background: var(--grw-surface);
    box-shadow: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.45;
    min-height: 38px;
}

.grw-admin .grw-copy-btn--install {
    min-width: 74px;
    min-height: 38px;
    border-radius: var(--grw-radius-sm) !important;
    border-color: var(--grw-brand-border) !important;
    color: var(--grw-brand) !important;
    background: var(--grw-accent-light) !important;
    font-weight: 600;
    box-shadow: none;
}

.grw-admin .grw-copy-btn--install:hover,
.grw-admin .grw-copy-btn--install:focus {
    border-color: var(--grw-brand) !important;
    color: #1d4ed8 !important;
    background: #dbeafe !important;
}

.grw-copy-btn.grw-copy-btn--done {
    color: #047857 !important;
    border-color: #A7F3D0 !important;
    background: #ECFDF5 !important;
}

.grw-muted {
    color: var(--grw-text-muted);
    font-size: 12px;
}

.grw-hint {
    margin: 12px 0 0;
    color: var(--grw-text-muted);
    font-size: 12px;
}

/* Create form */
.grw-field {
    margin-bottom: 20px;
}

.grw-field__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--grw-text);
    font-size: 13px;
}

.grw-field__hint {
    margin: 8px 0 0;
    color: var(--grw-text-muted);
    font-size: 12px;
}

.grw-field-error {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #b91c1c;
}

.grw-search.is-invalid .grw-search__input,
.grw-search__input.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35);
}

.grw-create-form__submit-wrap .grw-submit:disabled,
.grw-create-form__submit-wrap input[type="submit"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.grw-search-lead {
    width: 100%;
    max-width: none;
    margin-bottom: 12px;
    padding: 16px 18px 18px;
    border: 1px solid #D7E3F8;
    border-radius: 14px;
    background: #F4F7FF;
    box-sizing: border-box;
}

.grw-search-lead .grw-field__label {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1E293B;
}

.grw-search-lead .grw-search-stack,
.grw-search-lead input.grw-search__input,
.grw-search-lead .grw-place-results,
.grw-field--place-search .grw-recent-places {
    width: 100%;
    max-width: none;
}

.grw-search {
    position: relative;
}

.grw-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #2563EB;
    pointer-events: none;
    z-index: 2;
    width: 22px;
    height: 22px;
    font-size: 22px;
    line-height: 1;
}

input.grw-search__input {
    width: 100%;
    max-width: 480px;
    min-height: 52px;
    padding: 12px 16px 12px 48px !important;
    border: 1px solid #D6DEEA;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.3;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.grw-search__input:focus {
    border-color: var(--grw-brand);
    box-shadow: 0 0 0 1px var(--grw-brand);
    outline: none;
}

.grw-field--place-search {
    position: relative;
}

.grw-search-stack {
    position: relative;
    max-width: 480px;
}

.grw-recent-places {
    margin-top: 16px;
    max-width: 480px;
}

.grw-recent-places__label {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--grw-text);
}

.grw-recent-places__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.grw-recent-places__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 4px 4px 10px;
    border: 1px solid var(--grw-border);
    border-radius: var(--grw-radius-sm);
    background: #fff;
    gap: 2px;
}

.grw-recent-places__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 6px 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--grw-text);
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
}

.grw-recent-places__chip:hover {
    color: var(--grw-brand);
}

.grw-recent-places__chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    font-weight: 500;
}

.grw-recent-places__chip-rating {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--grw-muted);
}

.grw-recent-places__remove {
    flex: 0 0 auto;
    align-self: flex-start;
    margin: 0;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--grw-text-muted);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    border-radius: 4px;
}

.grw-recent-places__remove:hover,
.grw-recent-places__remove:focus {
    background: rgba(15, 23, 42, 0.08);
    color: var(--grw-text);
    outline: none;
}

.grw-place-results {
    position: absolute;
    z-index: 15;
    left: 0;
    top: 100%;
    border: 1px solid var(--grw-border);
    border-radius: var(--grw-radius-sm);
    margin-top: 6px;
    width: 100%;
    max-width: 480px;
    max-height: 220px;
    overflow: auto;
    background: #fff;
    box-shadow: var(--grw-shadow);
}

.grw-place-results button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--grw-border);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
}

.grw-place-results button:last-child {
    border-bottom: 0;
}

.grw-place-results button:hover,
.grw-place-results button:focus {
    background: var(--grw-brand-light);
}

.grw-place-results p {
    padding: 10px 12px;
    margin: 0;
    color: var(--grw-text-muted);
    font-size: 13px;
}

.grw-place-results__status {
    color: var(--grw-text-muted);
}

.grw-place-results__status--empty {
    color: var(--grw-text-muted);
}

.grw-place-results__status--error {
    color: #b91c1c;
}

.grw-search--busy .grw-search__input {
    background-image: linear-gradient(90deg, #fff 0%, var(--grw-brand-light) 50%, #fff 100%);
    background-size: 200% 100%;
    animation: grw-search-shimmer 1.2s ease-in-out infinite;
}

@keyframes grw-search-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.grw-selected-place {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: var(--grw-radius-sm);
    color: #047857;
    font-size: 13px;
    font-weight: 500;
    max-width: 480px;
}

.grw-selected-place[hidden] {
    display: none !important;
}

.grw-selected-place .dashicons {
    color: #059669;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.grw-selected-place__clear {
    margin-left: auto;
    padding: 2px 6px;
    border: 0;
    background: transparent;
    color: #047857;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    border-radius: 4px;
}

.grw-selected-place__clear:hover,
.grw-selected-place__clear:focus {
    background: rgba(4, 120, 87, 0.12);
    color: #065f46;
    outline: none;
}

/* Layout picker */
.grw-layout-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.grw-layout-category__head {
    margin-bottom: 8px;
}

.grw-layout-category__title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--grw-text-muted);
}

.grw-layout-category__hint {
    margin: 2px 0 0;
    font-size: 11px;
    color: var(--grw-text-muted);
}

.grw-layout-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.grw-layout-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid var(--grw-border);
    border-radius: var(--grw-radius-sm);
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

/* Available (unselected): blue hover only — never sticks after selection */
.grw-layout-card--selectable:hover:not(.grw-layout-card--selected) {
    border-color: var(--grw-accent);
}

.grw-layout-card--selected {
    border: 3px solid var(--grw-selected);
    background: #fff;
    box-shadow: none;
    padding: 6px; /* keep outer size stable with thicker border */
}

.grw-layout-card--selected:hover {
    border-color: var(--grw-selected);
    background: #fff;
    box-shadow: none;
}

.grw-layout-card--selected .grw-layout-card__preview {
    border-color: var(--grw-border);
    box-shadow: none;
    opacity: 1;
    filter: none;
}

.grw-layout-card--selected .grw-layout-card__mock {
    opacity: 1;
    filter: none;
}

.grw-layout-card__selected-pill {
    display: none;
    position: static;
    z-index: auto;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: var(--grw-selected);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.35);
    pointer-events: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

.grw-layout-card--selected .grw-layout-card__selected-pill {
    display: inline-flex;
}

.grw-layout-card--locked {
    cursor: pointer;
    border-width: 2px;
    border-color: var(--grw-border-strong);
    background: var(--grw-surface-muted);
}

.grw-layout-card--locked:hover {
    border-color: var(--grw-brand-border);
    background: var(--grw-accent-light);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.grw-layout-card--locked:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.grw-layout-card__previewing-pill {
    display: none;
    align-items: center;
    margin: 0;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-transform: uppercase;
    pointer-events: none;
    white-space: normal;
    text-align: left;
    max-width: 100%;
    flex: 1 1 auto;
}

.grw-layout-card--previewing .grw-layout-card__pill,
.grw-layout-card--previewing .grw-layout-card__icon {
    display: none;
}

.grw-layout-card--previewing .grw-layout-card__header {
    justify-content: flex-start;
}

.grw-layout-card--previewing .grw-layout-card__previewing-pill {
    display: inline-flex;
}

.grw-layout-card--previewing .grw-layout-card__hover-hint {
    display: none !important;
}

.grw-layout-card--locked.grw-layout-card--previewing {
    overflow: visible;
    background: #fff;
    border-style: dashed;
    border-width: 2px;
    box-shadow: none;
}

.grw-layout-card--entitlement-linked_free .grw-layout-card__previewing-pill {
    background: #fff;
    color: #1D4ED8;
    border: 1px dashed #2563EB;
}

.grw-layout-card--entitlement-site .grw-layout-card__previewing-pill {
    background: #fff;
    color: #6D28D9;
    border: 1px dashed #7C3AED;
}

.grw-layout-card--entitlement-linked_free.grw-layout-card--previewing,
.grw-layout-card--entitlement-linked_free.grw-layout-card--previewing:hover {
    border-color: #1D4ED8;
    border-style: dashed;
    background: #fff;
    box-shadow: none;
}

.grw-layout-card--entitlement-site.grw-layout-card--previewing,
.grw-layout-card--entitlement-site.grw-layout-card--previewing:hover {
    border-color: #6D28D9;
    border-style: dashed;
    background: #fff;
    box-shadow: none;
}

/* Free with account — inviting, full-colour preview */
.grw-layout-card--entitlement-linked_free {
    background: #EFF6FF;
    border-color: #93C5FD;
}

.grw-layout-card--entitlement-linked_free .grw-layout-card__preview::after {
    display: none;
}

.grw-layout-card--entitlement-linked_free .grw-layout-card__mock {
    filter: none;
}

.grw-layout-card--entitlement-linked_free:hover {
    border-color: #2563EB;
    background: #DBEAFE;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.16);
}

/*
 * Tile border stays on the outer layout card only.
 * Do not let FREE WITH ACCOUNT / locked chrome set border on the inner widget
 * (Compact Badge Google tracer, Grid cards, Tag sticker, etc.).
 */
.grw-layout-card--locked .grw-layout-card__mock,
.grw-layout-card--entitlement-linked_free .grw-layout-card__mock,
.grw-layout-card--entitlement-linked_free:hover .grw-layout-card__mock {
    border: none;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.grw-layout-card--entitlement-linked_free .grw-layout-card__hover-hint {
    background: #1D4ED8;
    color: #fff;
}

/* Site plan — muted preview, paid feel */
.grw-layout-card--entitlement-site {
    background: #F5F3FF;
    border-color: #C4B5FD;
}

.grw-layout-card--entitlement-site .grw-layout-card__preview::after {
    background: rgba(109, 40, 217, 0.16);
}

.grw-layout-card--entitlement-site .grw-layout-card__mock {
    filter: grayscale(0.35) saturate(0.7);
}

.grw-layout-card--entitlement-site:hover {
    border-color: #7C3AED;
    background: #EDE9FE;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.16);
}

.grw-layout-card--entitlement-site .grw-layout-card__hover-hint {
    background: #6D28D9;
    color: #fff;
}

.grw-layout-upgrade {
    margin-top: 28px;
    padding: 24px 26px 26px;
    border: 1px solid var(--grw-brand-border);
    border-left: 4px solid var(--grw-accent);
    border-radius: var(--grw-radius);
    background: linear-gradient(165deg, var(--grw-accent-light) 0%, #fff 38%, #fff 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(37, 99, 235, 0.07);
}

.grw-layout-upgrade__title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--grw-text);
}

.grw-layout-upgrade__lede {
    margin: 0 0 18px;
    max-width: 58ch;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--grw-text-muted);
}

.grw-layout-upgrade__benefits {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    max-width: 72ch;
    display: grid;
    gap: 10px;
}

.grw-layout-upgrade__benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
}

.grw-layout-upgrade__tick {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--grw-accent);
}

.grw-layout-upgrade__tick svg {
    display: block;
    width: 20px;
    height: 20px;
}

.grw-layout-upgrade__benefit-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1.45;
}

.grw-layout-upgrade__benefit-feature {
    font-weight: 600;
    color: var(--grw-text);
}

.grw-layout-upgrade__benefit-detail {
    color: var(--grw-text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.grw-layout-upgrade__actions {
    margin: 20px 0 0;
    padding-top: 4px;
}

.grw-layout-upgrade__cta {
    font-weight: 600;
    padding: 6px 18px !important;
    min-height: 36px;
    border-radius: var(--grw-radius-sm) !important;
    background: var(--grw-accent) !important;
    border-color: var(--grw-accent) !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 4px 12px rgba(37, 99, 235, 0.18);
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.grw-layout-upgrade__cta:hover,
.grw-layout-upgrade__cta:focus {
    background: #1D4ED8 !important;
    border-color: #1D4ED8 !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.24), 0 6px 16px rgba(37, 99, 235, 0.22);
    transform: translateY(-1px);
}

.grw-layout-picker--locked {
    margin-top: 0;
}

.grw-layout-card--locked .grw-layout-card__preview::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(148, 163, 184, 0.28);
    z-index: 2;
    pointer-events: none;
}

.grw-layout-card--locked .grw-layout-card__mock {
    z-index: 1;
}

.grw-layout-card--locked .grw-layout-card__label {
    opacity: 1;
    color: var(--grw-text);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/*
 * GRWI_LOCKED_CARD_CHROME = false
 * Locked tiles use the same border/background as available cards; icon + pill stay.
 * Revert locked-card chrome: delete this block (restore tinted bg + distinct borders).
 */
.grw-layout-card--locked:not(.grw-layout-card--previewing) {
    border-width: 1px;
    border-color: var(--grw-border);
    background: #fff;
}

.grw-layout-card--locked:not(.grw-layout-card--previewing):hover {
    border-color: var(--grw-accent);
    background: #fff;
    box-shadow: none;
}

.grw-layout-card--entitlement-linked_free:not(.grw-layout-card--previewing),
.grw-layout-card--entitlement-site:not(.grw-layout-card--previewing) {
    background: #fff;
    border-color: var(--grw-border);
}

.grw-layout-card--entitlement-linked_free:not(.grw-layout-card--previewing):hover,
.grw-layout-card--entitlement-site:not(.grw-layout-card--previewing):hover {
    border-color: var(--grw-accent);
    background: #fff;
    box-shadow: none;
}

.grw-layout-card--locked .grw-layout-card__preview::after {
    display: none;
}

.grw-layout-card--entitlement-site .grw-layout-card__mock {
    filter: none;
}

/* Hide foreign WP / other-plugin notices on this screen (backup for JS/PHP suppress). */
body.toplevel_page_grwi-widget #wpbody-content > .notice:not(.grw-upgrade-banner),
body.toplevel_page_grwi-widget #wpbody-content > .updated,
body.toplevel_page_grwi-widget #wpbody-content > .error,
body.toplevel_page_grwi-widget #wpbody-content > .update-nag,
body.toplevel_page_grwi-widget #wpbody-content > .woocommerce-message,
body.admin_page_grwi-customize #wpbody-content > .notice,
body.admin_page_grwi-customize #wpbody-content > .updated,
body.admin_page_grwi-customize #wpbody-content > .error,
body.admin_page_grwi-customize #wpbody-content > .update-nag,
body.admin_page_grwi-customize #wpbody-content > .woocommerce-message {
    display: none !important;
}

.grw-layout-card__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.grw-layout-card__preview {
    position: relative;
    aspect-ratio: 16 / 11;
    width: 100%;
    min-height: 104px;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid var(--grw-border);
    background: var(--grw-surface-muted);
    overflow: hidden;
}

.grw-layout-card__preview--badge {
    aspect-ratio: 16 / 11;
    min-height: 104px;
}

.grw-layout-card__preview--badge_card {
    aspect-ratio: 16 / 11;
    min-height: 104px;
}

.grw-layout-card__preview--badge_compact {
    aspect-ratio: 16 / 11;
    min-height: 104px;
}

.grw-layout-card__preview--badge_inline {
    aspect-ratio: 16 / 11;
    min-height: 104px;
}

.grw-layout-card__mock {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* block + border-box: flex/inline defaults collapse abspos mock width → stage left:50% = 0 */
    display: block !important;
    box-sizing: border-box !important;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.grw-layout-card__mock [data-grw-drawer-trigger],
.grw-layout-card__mock .grw-view-all-reviews,
.grw-layout-card__mock .grw-show-more-reviews,
.grw-layout-card__mock .grw-badge[role="button"],
.grw-layout-card__mock .grw-pill-chip[data-grw-drawer-trigger],
.grw-layout-card__preview a,
.grw-layout-card__preview button,
.grw-layout-card__preview [href],
.grw-layout-card__preview [role="link"] {
    pointer-events: none !important;
    cursor: default !important;
}

.grw-layout-card__stage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center center;
    display: block;
    text-align: center;
}

.grw-layout-card__preview--badge .grw-layout-card__stage,
.grw-layout-card__preview--badge_card .grw-layout-card__stage,
.grw-layout-card__preview--badge_compact .grw-layout-card__stage,
.grw-layout-card__preview--badge_inline .grw-layout-card__stage {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grw-layout-card__mock[data-layout^="sticker_"] .grw-layout-card__stage {
    display: flex;
    align-items: center;
    justify-content: center;
}

.grw-layout-card__mock[data-layout^="sticker_"] {
    overflow: visible;
}

.grw-layout-card__preview:has(.grw-layout-card__mock[data-layout^="sticker_"]) {
    overflow: visible;
}

.grw-layout-card__mock[data-layout="feed_masonry"] [data-grw-layout-stage],
.grw-layout-card__mock[data-layout="feed_grid"] [data-grw-layout-stage],
.grw-layout-card__mock[data-layout="feed_slider"] [data-grw-layout-stage] {
    container-type: inline-size;
    container-name: grw-widget;
}

/* Review request is a fluid card (max 480px), not a shrink-wrapped badge.
   A percentage min-width inside a max-content parent collapses to a few pixels,
   so the thumbnail stage pins every shell to a definite 480px. */
.grw-layout-card__mock[data-layout="badge_review_request"] [data-grw-layout-target],
.grw-layout-card__mock[data-layout="badge_review_request"] .grw-placement-shell,
.grw-layout-card__mock[data-layout="badge_review_request"] .grw-typo-root,
.grw-layout-card__mock[data-layout="badge_review_request"] .grw-embed,
.grw-layout-card__mock[data-layout="badge_review_request"] .grw-lf,
.grw-layout-card__mock[data-layout="badge_review_request"] .lf-request {
    display: block !important;
    width: 480px !important;
    max-width: 480px !important;
    min-width: 480px !important;
    box-sizing: border-box !important;
}

.grw-layout-card__mock[data-layout="feed_masonry"] .grw-typo-root,
.grw-layout-card__mock[data-layout="feed_masonry"] .grw-embed,
.grw-layout-card__mock[data-layout="feed_masonry"] .grw-widget-shell,
.grw-layout-card__mock[data-layout="feed_masonry"] .grw-mock,
.grw-layout-card__mock[data-layout="feed_grid"] .grw-typo-root,
.grw-layout-card__mock[data-layout="feed_grid"] .grw-embed,
.grw-layout-card__mock[data-layout="feed_grid"] .grw-widget-shell,
.grw-layout-card__mock[data-layout="feed_grid"] .grw-mock {
    container-type: normal;
    container-name: none;
}

.grw-layout-card__mock[data-layout="feed_grid"] .grw-preview-showcase-track--examples > .grw-feed-review-card,
.grw-layout-card__mock[data-layout="feed_grid"] .grw-preview-showcase-track--examples > .grw-preview-showcase-card {
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
}

.grw-layout-card__mock[data-layout="feed_grid"] .grw-review-photos {
    flex: 0 1 auto !important;
    min-height: 0 !important;
}

.grw-layout-card__mock[data-layout="feed_grid"] .grw-feed-review-card__body {
    flex: 1 0 auto !important;
    overflow: visible !important;
}

.grw-layout-card__mock[data-layout="feed_grid"] .grw-showcase-excerpt {
    flex: 0 0 auto !important;
    min-height: 2.4em !important;
}

.grw-layout-card__mock[data-layout="feed_grid"] .grw-feed-review-card__stars,
.grw-layout-card__mock[data-layout="feed_grid"] .grw-feed-review-card__footer {
    flex-shrink: 0 !important;
}

/* Masonry column-count comes from --grw-feed-columns (default 3); do not force 3/4. */

.grw-layout-card__target {
    display: block;
}

.grw-layout-card__mock .grw-mock.max-w-2xl,
.grw-layout-card__mock .grw-mock.max-w-xl,
.grw-layout-card__mock .grw-mock.max-w-lg,
.grw-layout-card__mock .grw-mock.max-w-3xl,
.grw-layout-card__mock .grw-mock.max-w-md,
.grw-layout-card__mock .grw-mock.max-w-sm {
    max-width: none;
}

.grw-layout-card__mock .grw-badge,
.grw-layout-card__mock .grw-mock.grw-badge,
.grw-layout-card__mock .grw-pill-chip.grw-sticker {
    width: max-content;
    max-width: none;
}

.grw-layout-card__mock .grw-badge .grw-badge-count {
    white-space: nowrap;
}

.grw-layout-card__mock .grw-preview-carousel.grw-mock,
.grw-layout-card__mock .grw-preview-showcase.grw-mock {
    overflow: visible;
}

/* WP admin button chrome stretches pagination into capsules — force circular dots */
.grw-admin .grw-preview-carousel-dots button,
.grw-admin .grw-preview-carousel-dot,
.grw-admin .grw-layout-card__mock .grw-preview-carousel-dots button,
.grw-admin [data-grw-layout-picker-preview] .grw-preview-carousel-dots button {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    max-width: 8px !important;
    max-height: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 9999px !important;
    line-height: 0 !important;
    font-size: 0 !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    overflow: hidden !important;
}

.grw-admin .grw-layout-card__mock img.rounded-full,
.grw-admin [data-grw-layout-picker-preview] img.rounded-full,
.grw-admin .grw-layout-card__mock .grw-feed-review-card__avatar img,
.grw-admin .grw-layout-card__mock .grw-list-review__avatar img,
.grw-admin [data-grw-layout-picker-preview] .grw-feed-review-card__avatar img,
.grw-admin [data-grw-layout-picker-preview] .grw-list-review__avatar img {
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
}

.grw-admin .grw-review-avatar-initials,
.grw-create-result__preview-root .grw-review-avatar-initials,
.grw-widget-preview-modal__preview-root .grw-review-avatar-initials {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 40px;
    height: 40px;
}

.grw-admin .grw-review-avatar-initials.w-7,
.grw-create-result__preview-root .grw-review-avatar-initials.w-7,
.grw-widget-preview-modal__preview-root .grw-review-avatar-initials.w-7 {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
}

.grw-admin .grw-review-avatar-initials.w-8,
.grw-create-result__preview-root .grw-review-avatar-initials.w-8,
.grw-widget-preview-modal__preview-root .grw-review-avatar-initials.w-8 {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
}

.grw-admin .grw-review-avatar-initials.w-10,
.grw-create-result__preview-root .grw-review-avatar-initials.w-10,
.grw-widget-preview-modal__preview-root .grw-review-avatar-initials.w-10 {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
}

.grw-admin .grw-review-avatar-initials.w-11,
.grw-create-result__preview-root .grw-review-avatar-initials.w-11,
.grw-widget-preview-modal__preview-root .grw-review-avatar-initials.w-11 {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
}

.grw-admin .grw-layout-card__mock .font-bold,
.grw-admin [data-grw-layout-picker-preview] .font-bold {
    font-weight: 700 !important;
}


.grw-layout-card__preview--theme-light {
    border-color: rgba(15, 23, 42, 0.1);
    background: var(--grw-surface-muted);
}

/* Gray stage + white widget content: WP admin lacks Tailwind bg-white utilities */
.grw-layout-card__preview--theme-light .grw-layout-card__mock .grw-widget-shell,
.grw-layout-card__preview--theme-light .grw-layout-card__mock .grw-mock.grw-preview-showcase,
.grw-layout-card__preview--theme-light .grw-layout-card__mock .grw-mock.grw-preview-carousel,
.grw-layout-card__preview--theme-light .grw-layout-card__mock .grw-mock.grw-widget-shell,
.grw-layout-card__preview--theme-light .grw-layout-card__mock .grw-badge.grw-mock:not(.grw-google-tracer),
.grw-layout-card__preview--theme-light .grw-layout-card__mock .grw-google-tracer-inner,
.grw-layout-card__preview--theme-light [data-grw-layout-picker-preview] .grw-widget-shell,
.grw-layout-card__preview--theme-light [data-grw-layout-picker-preview] .grw-mock.grw-preview-showcase,
.grw-layout-card__preview--theme-light [data-grw-layout-picker-preview] .grw-mock.grw-preview-carousel,
.grw-layout-card__preview--theme-light [data-grw-layout-picker-preview] .grw-mock.grw-widget-shell {
    background: var(--grw-shell-bg, #fff) !important;
}

.grw-layout-card__preview--theme-light .grw-layout-card__mock .grw-feed-review-card,
.grw-layout-card__preview--theme-light .grw-layout-card__mock .grw-preview-showcase-card,
.grw-layout-card__preview--theme-light .grw-layout-card__mock .grw-grid-card,
.grw-layout-card__preview--theme-light .grw-layout-card__mock .grw-masonry-item,
.grw-layout-card__preview--theme-light .grw-layout-card__mock .grw-list-review,
.grw-layout-card__preview--theme-light [data-grw-layout-picker-preview] .grw-feed-review-card,
.grw-layout-card__preview--theme-light [data-grw-layout-picker-preview] .grw-preview-showcase-card,
.grw-layout-card__preview--theme-light [data-grw-layout-picker-preview] .grw-grid-card,
.grw-layout-card__preview--theme-light [data-grw-layout-picker-preview] .grw-masonry-item,
.grw-layout-card__preview--theme-light [data-grw-layout-picker-preview] .grw-list-review {
    background: var(--grw-feed-card-bg, #fff) !important;
}

.grw-layout-card__preview--theme-light .grw-layout-card__mock .grw-sticker-shape.grw-sticker-pill,
.grw-layout-card__preview--theme-light [data-grw-layout-picker-preview] .grw-sticker-shape.grw-sticker-pill {
    background-color: var(--grw-shell-bg, #fff);
}

/* Google tracer ring: never inherit the locked tile's solid #2563EB border. */
.grw-layout-card__mock .grw-google-tracer,
.grw-layout-card--locked .grw-layout-card__mock .grw-google-tracer,
.grw-layout-card--entitlement-linked_free .grw-layout-card__mock .grw-google-tracer,
.grw-layout-card--entitlement-linked_free:hover .grw-layout-card__mock .grw-google-tracer {
    appearance: none;
    -webkit-appearance: none;
    border: none !important;
    border-color: transparent !important;
    outline: none;
    box-shadow: none;
    background-color: transparent !important;
    background-image: linear-gradient(90deg, #4285F4 0%, #34A853 22%, #FBBC04 44%, #EA4335 66%, #4285F4 88%, #34A853 100%) !important;
    background-size: 220% 100%;
}

.grw-layout-card__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--grw-text);
    line-height: 1.3;
}

.grw-layout-card--selected .grw-layout-card__label {
    color: var(--grw-text);
}

.grw-upgrade-inline {
    display: none;
}

.grw-submit {
    margin-top: 4px;
}

/* Sidebar account */
.grw-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.grw-sidebar > * {
    flex-shrink: 0;
}

.grw-preview-rail {
    margin: 0;
    padding: 14px 16px 16px;
    border: 1px solid var(--grw-brand-border);
    border-left: 3px solid var(--grw-accent);
    border-radius: var(--grw-radius);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(37, 99, 235, 0.08);
}

.grw-preview-rail[hidden] {
    display: none !important;
}

.grw-preview-rail--link {
    border-left-color: #2563EB;
    border-color: #93C5FD;
}

.grw-preview-rail--paid {
    border-left-color: #7C3AED;
    border-color: #C4B5FD;
}

.grw-preview-rail__title {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: var(--grw-text);
}

.grw-preview-rail__body {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--grw-text-muted);
}

.grw-preview-rail__actions {
    margin: 0;
}

.grw-preview-rail__cta {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    min-height: 34px;
    padding: 8px 12px !important;
    font-size: 13px;
    font-weight: 600;
}

.grw-preview-rail--link .grw-preview-rail__cta {
    background: #2563EB !important;
    border-color: #2563EB !important;
}

.grw-preview-rail--link .grw-preview-rail__cta:hover,
.grw-preview-rail--link .grw-preview-rail__cta:focus {
    background: #1D4ED8 !important;
    border-color: #1D4ED8 !important;
}

.grw-preview-rail--paid .grw-preview-rail__cta {
    background: #7C3AED !important;
    border-color: #7C3AED !important;
}

.grw-preview-rail--paid .grw-preview-rail__cta:hover,
.grw-preview-rail--paid .grw-preview-rail__cta:focus {
    background: #6D28D9 !important;
    border-color: #6D28D9 !important;
}

.grw-layout-upgrade--sidebar {
    margin-top: 0;
    padding: 14px 16px 18px;
    border-left-width: 3px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(37, 99, 235, 0.08);
}

.grw-layout-upgrade__intro {
    margin: 0 0 14px;
}

.grw-layout-upgrade__kicker {
    display: flex;
    align-items: center;
    gap: 8px;
}

.grw-layout-upgrade__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #2563EB;
    flex-shrink: 0;
}

.grw-layout-upgrade__mark svg {
    display: block;
    width: 22px;
    height: 22px;
}

.grw-layout-upgrade__pill {
    font-size: 11px;
    font-weight: 600;
    color: #3B5BB8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 10px 4px 12px;
    border-radius: 999px;
    background: #F0F4FD;
}

.grw-layout-upgrade__intro-title {
    margin: 12px 0 6px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--grw-text);
}

.grw-layout-upgrade__intro-copy {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--grw-text-muted);
}

.grw-plan-switch {
    display: flex;
    gap: 4px;
    margin: 0 0 12px;
    padding: 3px;
    border-radius: 9px;
    background: #eef2f7;
}

.grw-plan-switch__btn {
    flex: 1 1 0;
    margin: 0;
    padding: 6px 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #475569;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
}

.grw-plan-switch__btn.is-active {
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.grw-layout-upgrade--sidebar .grw-layout-upgrade__title {
    margin: 0 0 4px;
    font-size: 15px;
    letter-spacing: -0.015em;
}

.grw-layout-upgrade--sidebar .grw-layout-upgrade__lede {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.grw-layout-upgrade--sidebar .grw-layout-upgrade__benefits {
    margin: 0 0 14px;
    gap: 8px;
    max-width: none;
}

.grw-layout-upgrade--sidebar .grw-layout-upgrade__benefit {
    gap: 10px;
}

.grw-layout-upgrade--sidebar .grw-layout-upgrade__tick {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.grw-layout-upgrade--sidebar .grw-layout-upgrade__tick svg {
    width: 18px;
    height: 18px;
}

.grw-layout-upgrade--sidebar .grw-layout-upgrade__benefit-text {
    font-size: 0.8125rem;
    line-height: 1.35;
    gap: 1px;
}

.grw-layout-upgrade--sidebar .grw-layout-upgrade__benefit-detail {
    font-size: 0.75rem;
    line-height: 1.4;
}

.grw-layout-upgrade--sidebar .grw-layout-upgrade__actions {
    margin: 0;
    padding-top: 0;
}

.grw-layout-upgrade--sidebar .grw-layout-upgrade__cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 6px 12px !important;
    min-height: 34px;
    font-size: 13px;
}

.grw-layout-upgrade__compare {
    margin: 0.55rem 0 0;
    text-align: center;
}

.grw-layout-upgrade__compare a {
    color: var(--grw-text-muted);
    font-size: 0.78rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.grw-layout-upgrade__compare a:hover,
.grw-layout-upgrade__compare a:focus {
    color: var(--grw-brand, #1d4ed8);
}

.grw-account {
    position: relative;
    background: var(--grw-surface);
    border: 1px solid var(--grw-border);
    border-radius: var(--grw-radius);
    box-shadow: var(--grw-shadow);
    overflow: hidden;
}

/* Multicolour Google left border — shared by linked + unlinked. */
.grw-account::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #EA4335 0%, #FBBC05 33%, #34A853 66%, #4285F4 100%);
    z-index: 1;
}

.grw-account .grw-account__summary {
    padding-left: 18px;
}

.grw-account .grw-account__body {
    padding: 0 18px 16px;
}

.grw-account[open] > .grw-account__body {
    display: block;
}

/* Unlinked: link-a-free-account promo (step 1 conversion).
   Surface chrome lives on .grw-account; this flag scopes promo-only content. */
.grw-account--link-promo {
    /* marker for unlinked promo markup / tests */
}

.grw-account--link-promo > .grw-account__summary {
    pointer-events: none;
    cursor: default;
}

.grw-account--link-promo .grw-account__title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.grw-account--link-promo .grw-account__summary::after {
    display: none;
}

.grw-account--link-promo .grw-account__logo {
    width: 22px;
    height: 22px;
}

.grw-account-link__head {
    margin: 0;
}

.grw-account-link__title {
    margin: 14px 0 6px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--grw-text);
}

.grw-account-link__title-line,
.grw-account-link__title-accent {
    display: block;
    white-space: nowrap;
}

.grw-account__logo {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.grw-account-link__lede {
    margin: 0 0 14px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--grw-text-muted);
}

.grw-account-link__benefits {
    margin: 0 0 16px 6px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.grw-account-link__benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.grw-account-link__tick {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: #DBEAFE;
    color: #2563EB;
}

.grw-account-link__tick svg {
    display: block;
    width: 12px;
    height: 12px;
}

.grw-account-link__benefit-text {
    min-width: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--grw-text-muted);
}

.grw-account-link__gain {
    font-weight: 700;
    color: #2563EB;
}

.grw-account-link__was {
    font-weight: 700;
    color: var(--grw-text);
}

.grw-account-link__actions {
    margin: 0;
}

.grw-account-link__cta.button-primary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: #4285F4 !important;
    border-color: #4285F4 !important;
    box-shadow: 0 1px 2px rgba(66, 133, 244, 0.22), 0 4px 12px rgba(66, 133, 244, 0.2);
    font-weight: 600;
    font-size: 14px;
    min-height: 40px;
    border-radius: 8px !important;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.grw-account-link__cta-arrow {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.grw-account-link__cta.button-primary:hover,
.grw-account-link__cta.button-primary:focus {
    background: #1A73E8 !important;
    border-color: #1A73E8 !important;
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.28), 0 6px 16px rgba(66, 133, 244, 0.24);
    transform: translateY(-1px);
}

.grw-account-link__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 14px 0 0;
    font-size: 11px;
    line-height: 1.3;
    color: var(--grw-text-muted);
    text-align: center;
}

.grw-account-link__meta-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.grw-account-link__meta-icon,
.grw-account-link__existing-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--grw-text-muted);
    flex-shrink: 0;
}

.grw-account-link__meta-icon svg {
    display: block;
    width: 12px;
    height: 12px;
}

.grw-account-link__existing-icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

.grw-account-link__dot {
    color: var(--grw-text-muted);
}

.grw-account-link__existing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    margin: 12px 0 4px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #3B82F6;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
}

.grw-account-link__existing-icon {
    color: currentColor;
}

.grw-account-link__existing:hover,
.grw-account-link__existing:focus {
    color: #1A73E8;
    background: none;
    box-shadow: none;
    text-decoration: none !important;
}

.grw-account-link__status {
    margin: 8px 0 0;
    min-height: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--grw-text-muted);
    text-align: center;
}

.grw-account-link__status:empty {
    display: none;
}

.grw-account-link__footnote {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--grw-border);
    font-size: 12px;
    font-weight: 400;
    color: var(--grw-text-muted);
    line-height: 1.4;
    text-align: left;
}

.grw-account-link__footnote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #16A34A;
    flex-shrink: 0;
}

.grw-account-link__footnote-icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

.grw-account-link__footnote-text {
    display: block;
    line-height: 1.4;
}

.grw-account__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--grw-text);
}

.grw-account__summary::-webkit-details-marker {
    display: none;
}

.grw-account__summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid var(--grw-text-muted);
    border-bottom: 2px solid var(--grw-text-muted);
    transform: rotate(45deg);
    transition: transform 0.15s;
    flex-shrink: 0;
}

.grw-account[open] .grw-account__summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.grw-account__status {
    font-size: 11px;
    font-weight: 700;
    color: var(--grw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 999px;
    background: #F1F5F9;
}

.grw-account__status--upgrade {
    color: #3B5BB8;
    background: #F0F4FD;
    padding: 4px 10px 4px 12px;
    font-weight: 600;
}

.grw-account__status--linked {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #166534;
    background: #DCFCE7;
}

.grw-account__status-check {
    font-size: 11px;
    line-height: 1;
}

.grw-account__body {
    padding: 0 16px 16px;
    border-top: 1px solid var(--grw-border);
}

.grw-account__heading {
    margin: 14px 0 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--grw-text);
    line-height: 1.35;
}

.grw-account__text {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    color: var(--grw-text-muted);
    line-height: 1.5;
}

.grw-account__table {
    width: 100%;
    margin: 0 0 14px;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.grw-account__table th,
.grw-account__table td {
    padding: 9px 0;
    border-bottom: 1px solid var(--grw-border);
    text-align: left;
    vertical-align: top;
    line-height: 1.4;
}

.grw-account__table tr:last-child th,
.grw-account__table tr:last-child td {
    border-bottom: none;
}

.grw-account__table th {
    width: 30%;
    padding-right: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--grw-text-muted);
}

.grw-account__table td {
    font-weight: 500;
    color: var(--grw-text);
    word-break: break-word;
}

.grw-account__dashboard,
.grw-account__connect {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.grw-account__dashboard.button-secondary {
    min-height: 34px;
    font-weight: 600;
    border-color: var(--grw-accent) !important;
    color: var(--grw-accent) !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.grw-account__dashboard.button-secondary:hover,
.grw-account__dashboard.button-secondary:focus {
    background: var(--grw-accent-light) !important;
    border-color: #1A73E8 !important;
    color: #1A73E8 !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.grw-account__connect:disabled {
    opacity: 0.7;
    cursor: wait;
}

.grw-account__hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--grw-text-muted);
    line-height: 1.45;
    text-align: center;
}

.grw-account__manage {
    margin: 8px 0 0;
    text-align: center;
}

.grw-account__manage-toggle {
    color: var(--grw-accent) !important;
    font-size: 13px;
    text-decoration: none;
    box-shadow: none !important;
}

.grw-account__manage-panel {
    margin-top: 10px;
}

.grw-account__footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--grw-border);
    font-size: 12px;
    font-weight: 500;
    color: var(--grw-text-muted);
    line-height: 1;
    text-align: center;
}

.grw-account__footnote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
}

.grw-account__footnote-text {
    display: block;
    line-height: 1;
}

.grw-unlink-form .button {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 4px;
}

.grw-account__details {
    margin: 12px 0 16px;
    display: grid;
    gap: 10px;
}

.grw-account__detail {
    display: grid;
    gap: 2px;
}

.grw-account__detail dt {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--grw-text-muted);
}

.grw-account__detail dd {
    margin: 0;
    font-size: 13px;
    color: var(--grw-text);
    line-height: 1.4;
}

/* Footer */
.grw-footer {
    margin-top: 24px;
    padding: 14px 0 8px;
    border-top: 1px solid var(--grw-border);
}

.grw-footer__about {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--grw-text-muted);
}

.grw-footer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: var(--grw-text-muted);
}

.grw-footer__meta a {
    color: var(--grw-brand);
    text-decoration: none;
}

.grw-footer__meta a:hover {
    text-decoration: underline;
}

.grw-branding-credit {
    text-align: center;
    opacity: 0.75;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 960px) {
    .grw-layout {
        grid-template-columns: 1fr;
    }

    .grw-sidebar {
        order: 3;
    }
}

@media (max-width: 600px) {
    .grw-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .grw-hero__brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .grw-hero__logo {
        width: 180px;
    }

    .grw-layout-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grw-shortcode-field {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .grw-table__actions-col,
    .grw-table__actions {
        display: none;
    }
}

/* Live preview + create loading */
.grw-live-preview {
    margin-top: 20px;
    padding: 0;
    border: 1px solid var(--grw-brand-border);
    border-radius: var(--grw-radius);
    background: #fff;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

#grwi-wp-live-preview .grw-live-preview__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    margin: 0;
    padding: 14px 16px 12px;
    flex-wrap: wrap;
    background: #F8FAFC;
    border-bottom: 1px solid var(--grw-border);
}

.grw-live-preview__intro {
    min-width: 0;
    flex: 1 1 200px;
}

.grw-live-preview__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--grw-text);
}

.grw-live-preview__sub {
    margin: 0;
    font-size: 12px;
    color: var(--grw-text-muted);
}

.grw-live-preview__notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1 1 240px;
    max-width: 100%;
    margin: 0;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #C4B5FD;
    background: #F5F3FF;
    color: #6D28D9;
    box-sizing: border-box;
}

.grw-live-preview__notice[hidden] {
    display: none !important;
}

.grw-live-preview__notice[data-lock-tone="link"] {
    border-color: #93C5FD;
    background: #EFF6FF;
    color: #1D4ED8;
}

.grw-live-preview__notice-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    line-height: 16px;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
}

.grw-live-preview__notice-copy {
    min-width: 0;
    flex: 1;
}

.grw-live-preview__notice-title {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    color: inherit;
}

.grw-live-preview__notice-text {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    color: inherit;
}

.grw-live-preview__notice-title:empty,
.grw-live-preview__notice-text:empty {
    display: none;
}

.grw-live-preview--locked .grw-live-preview__stage,
.grw-live-preview--locked .grw-live-preview__target {
    filter: none;
    opacity: 1;
}

.grw-live-preview--locked .grw-live-preview__stage::after,
.grw-live-preview--locked .grw-live-preview__target::after {
    content: none !important;
    display: none !important;
}

/* Live preview stage: soft fill, no bordered box — widget sits on a light canvas. */
.grw-live-preview__stage {
    padding: 16px 8px 18px;
    background: #F1F5F9;
    border: none;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: center;
    min-width: 0;
    max-width: 100%;
    max-height: 560px;
    box-sizing: border-box;
}

.grw-live-preview--family-badge .grw-live-preview__stage,
.grw-live-preview--family-sticker .grw-live-preview__stage {
    max-height: 280px;
    padding: 16px 8px;
}

.grw-live-preview--family-feed .grw-live-preview__stage {
    max-height: 560px;
    padding: 16px 8px 18px;
}

.grw-live-preview__target {
    min-height: 80px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.grw-live-preview__target[data-grw-layout-picker-preview][data-layout="feed_grid"],
.grw-live-preview__target[data-grw-layout-picker-preview][data-layout="feed_masonry"] {
    overflow: visible;
}

/* Inline live preview: badges/stickers stay centered; feeds fill the stage width. */
.grw-live-preview__target[data-grw-layout-picker-preview][data-layout^="feed_"] {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: initial;
}

.grw-live-preview__target[data-grw-layout-picker-preview]:not([data-layout^="feed_"]) {
    display: inline-block;
    max-width: 100%;
    text-align: initial;
    vertical-align: top;
}

/* Live preview stickers: center inside stage; do not spill past overflow:hidden clip. */
.grw-live-preview__target[data-grw-layout-picker-preview][data-layout^="sticker_"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    overflow: hidden;
    text-align: center;
    box-sizing: border-box;
}

/*
 * Wrappers between the mount and the sticker must not shrink-wrap: width:max-content resolves
 * through max-width:100% cycles to less than the sticker width, anchoring it left and clipping it.
 * Full-width flex centring keeps the sticker centred; the mount's overflow:hidden still clips spill.
 * Ribbon is excluded — it relies on display:table wrappers from the preview script.
 */
.grw-live-preview__target[data-grw-layout-picker-preview][data-layout^="sticker_"]:not([data-layout="sticker_ribbon"]) .grw-typo-root,
.grw-live-preview__target[data-grw-layout-picker-preview][data-layout^="sticker_"]:not([data-layout="sticker_ribbon"]) .grw-embed,
.grw-live-preview__target[data-grw-layout-picker-preview][data-layout^="sticker_"]:not([data-layout="sticker_ribbon"]) .grw-placement-shell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.grw-live-preview__target[data-grw-layout-picker-preview][data-layout^="sticker_"]:not([data-layout="sticker_ribbon"]) .grw-pill-chip.grw-sticker,
.grw-live-preview__target[data-grw-layout-picker-preview][data-layout^="sticker_"]:not([data-layout="sticker_ribbon"]) .grw-google-tracer.grw-pill-chip.grw-sticker > .grw-google-tracer-inner {
    width: max-content !important;
    max-width: 100% !important;
    min-width: min-content !important;
    flex: 0 0 auto !important;
    margin-inline: auto !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.grw-live-preview__target[data-grw-layout-picker-preview][data-layout="sticker_ribbon"] .grw-typo-root,
.grw-live-preview__target[data-grw-layout-picker-preview][data-layout="sticker_ribbon"] .grw-embed,
.grw-live-preview__target[data-grw-layout-picker-preview][data-layout="sticker_ribbon"] .grw-placement-shell,
.grw-live-preview__target[data-grw-layout-picker-preview][data-layout="sticker_ribbon"] .grw-pill-chip.grw-sticker,
.grw-live-preview__target[data-grw-layout-picker-preview][data-layout="sticker_ribbon"] .grw-google-tracer.grw-pill-chip.grw-sticker > .grw-google-tracer-inner {
    width: max-content;
    max-width: 100%;
    min-width: min-content;
    margin-inline: auto;
    overflow: hidden;
    box-sizing: border-box;
}

/* The flex target centres the ribbon; stray auto/zero margin mixes left-anchor it otherwise. */
.grw-live-preview__target[data-grw-layout-picker-preview][data-layout="sticker_ribbon"] .grw-placement-shell {
    margin-inline: auto !important;
}

.grw-create-form__submit-wrap {
    position: relative;
    display: inline-block;
    margin-top: 20px;
}

.grw-create-form__submit-wrap.is-locked-preview {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.grw-create-form__submit-wrap.is-locked-preview .grw-submit,
.grw-create-form--locked-preview .grw-submit {
    display: none !important;
}

.grw-admin--preview-first .grw-create-form__submit-wrap.is-locked-preview .grw-submit,
.grw-admin--preview-first .grw-create-form--locked-preview .grw-submit {
    display: inline-block !important;
}

.grw-inline-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0 0;
    padding: 14px 16px;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    background: #EFF6FF;
    color: #1E3A8A;
}

.grw-inline-notice[hidden] {
    display: none !important;
}

.grw-inline-notice__icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 999px;
    background: #2563EB;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.grw-inline-notice__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.grw-inline-notice__title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.grw-inline-notice__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.grw-inline-notice__dismiss {
    flex: 0 0 auto;
    margin: -4px -6px 0 0;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: #1E3A8A;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}

.grw-inline-notice__dismiss:hover,
.grw-inline-notice__dismiss:focus {
    background: rgba(37, 99, 235, 0.12);
    outline: none;
}

.grw-inline-notice__dismiss:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563EB;
}

.grw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.grw-btn__icon {
    flex: 0 0 auto;
    display: block;
}

.grw-btn--outline {
    background: #fff;
    border: 1px solid #475569;
    color: #334155;
}

.grw-btn--outline:hover,
.grw-btn--outline:focus {
    background: #F8FAFC;
    border-color: #1E293B;
    color: #0F172A;
}

.grw-live-preview__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    margin-left: auto;
    min-width: 0;
    max-width: 100%;
}

.grw-live-preview__cta[hidden],
#grwi-pick-another-layout[hidden] {
    display: none !important;
}

.grw-btn--locked-cta {
    background: #7C3AED;
    border: 1px solid #7C3AED;
    color: #fff;
}

.grw-btn--locked-cta:hover,
.grw-btn--locked-cta:focus {
    background: #6D28D9;
    border-color: #6D28D9;
    color: #fff;
}

.is-locked-preview[data-lock-tone="link"] .grw-btn--locked-cta,
.grw-live-preview--locked[data-lock-tone="link"] + .grw-create-form__submit-wrap .grw-btn--locked-cta {
    background: #2563EB;
    border-color: #2563EB;
}

.is-locked-preview[data-lock-tone="link"] .grw-btn--locked-cta:hover,
.is-locked-preview[data-lock-tone="link"] .grw-btn--locked-cta:focus {
    background: #1D4ED8;
    border-color: #1D4ED8;
}

.grw-live-preview__cta-note {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
    max-width: 420px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--grw-text-muted);
    text-align: right;
}

.grw-live-preview__cta-lock {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    margin-top: 3px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M17 8h-1V6a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zm-7-2a2 2 0 1 1 4 0v2h-4V6zm3 10.7a1.7 1.7 0 1 1 0-3.4 1.7 1.7 0 0 1 0 3.4z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M17 8h-1V6a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zm-7-2a2 2 0 1 1 4 0v2h-4V6zm3 10.7a1.7 1.7 0 1 1 0-3.4 1.7 1.7 0 0 1 0 3.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 782px) {
    .grw-create-form__submit-wrap.is-locked-preview {
        flex-direction: column;
        align-items: stretch;
    }

    .grw-live-preview__cta {
        align-items: stretch;
        margin-left: 0;
    }

    .grw-live-preview__cta-note {
        text-align: left;
        justify-content: flex-start;
        max-width: none;
    }
}

.grw-create-form--busy .grw-create-form__overlay {
    display: flex;
}

.grw-create-form__overlay {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: var(--grw-radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--grw-brand);
    pointer-events: none;
}

.grw-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--grw-brand-border);
    border-top-color: var(--grw-brand);
    border-radius: 50%;
    animation: grw-spin 0.8s linear infinite;
}

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

.grw-panel--success {
    border-color: #86EFAC;
    background: linear-gradient(180deg, #F0FDF4 0%, #fff 100%);
}

/* Widget created success panel (dashboard create flow) */
.grw-create-result {
    margin: 0 0 24px;
    padding: 20px 22px;
    border: 1px solid var(--grw-brand-border);
    border-radius: var(--grw-radius);
    background: linear-gradient(135deg, var(--grw-accent-light) 0%, #fff 55%);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06);
}

.grw-create-result__title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--grw-brand);
}

.grw-create-result__hint {
    margin: 0 0 14px;
    color: var(--grw-text-muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.grw-create-result__preview {
    margin-bottom: 16px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--grw-border);
    border-radius: var(--grw-radius-sm);
    overflow: hidden;
}

.grw-create-result__preview-root.wb-preview-root,
.grw-widget-preview-modal__preview-root.wb-preview-root {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.grw-create-result__preview-root.wb-preview-root > [data-wb-builder-preview],
.grw-widget-preview-modal__preview-root.wb-preview-root > [data-wb-builder-preview] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    box-sizing: border-box;
}

.grw-create-result__preview .grw-live-preview__target {
    text-align: center;
}

.grw-create-result__codes {
    margin-bottom: 16px;
}

.grw-create-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.grw-create-result__actions .button-primary {
    margin-top: 8px;
}

.grw-panel--create-has-result .grw-panel__header {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--grw-border);
}

.grw-panel--create-has-result .grw-create-form {
    margin-top: 8px;
}

.grw-shortcode-field--prominent {
    margin-bottom: 12px;
}

.grw-shortcode-field--prominent .grw-shortcode-input {
    font-size: 14px;
    padding: 10px 12px;
}

.grw-created-actions {
    margin: 0 0 16px;
}

.grw-widget-embed-preview {
    margin-top: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--grw-border);
    border-radius: var(--grw-radius-sm);
}

.grw-widget-embed-preview__mount {
    min-height: 100px;
}

.grw-widget-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 100200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.grw-widget-preview-modal[hidden] {
    display: none !important;
}

body.grw-modal-open {
    overflow: hidden;
}

.grw-widget-preview-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.grw-widget-preview-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 32rem);
    max-height: min(90vh, 640px);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--grw-border);
    border-radius: var(--grw-radius);
    background: #fff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.grw-widget-preview-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--grw-border);
}

.grw-widget-preview-modal__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--grw-text);
    line-height: 1.35;
}

.grw-widget-preview-modal__close {
    flex-shrink: 0;
    margin: -4px -6px 0 0;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: var(--grw-text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.grw-widget-preview-modal__close:hover,
.grw-widget-preview-modal__close:focus {
    color: var(--grw-text);
}

.grw-widget-preview-modal__body {
    padding: 16px;
    overflow: auto;
}

.grw-widget-preview-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    color: var(--grw-text-muted);
    font-size: 13px;
}

.grw-widget-preview-modal__loading[hidden],
.grw-widget-preview-modal__mount[hidden],
.grw-widget-preview-modal__fallback[hidden] {
    display: none !important;
}

.grw-widget-preview-modal__mount {
    min-height: 100px;
    text-align: center;
}

.grw-widget-preview-modal__mount[data-grw-layout-picker-preview],
.grw-widget-preview-modal__mount [data-grw-layout-picker-preview] {
    display: inline-block;
    max-width: 100%;
    text-align: initial;
    vertical-align: top;
}


.grw-widget-preview-modal__fallback-hint {
    margin: 10px 0 0;
    text-align: center;
}

.grw-table__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.grw-table-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
    min-height: 30px;
    padding: 0 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    vertical-align: middle;
}

.grw-table-action-btn .dashicons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
    margin: 0;
    flex-shrink: 0;
}

.grw-table-action-btn .grw-spinner {
    flex-shrink: 0;
}

.grw-table-action-btn--edit {
    color: var(--grw-brand) !important;
    border-color: var(--grw-brand-border) !important;
    background: var(--grw-accent-light) !important;
}

.grw-table-action-btn--edit:hover,
.grw-table-action-btn--edit:focus {
    color: #1d4ed8 !important;
    border-color: var(--grw-brand) !important;
    background: #dbeafe !important;
}

.grw-table-action-btn--delete,
.grw-delete-widget-btn {
    color: #b32d2e !important;
    border-color: #d63638 !important;
}

.grw-table-action-btn--delete:hover,
.grw-table-action-btn--delete:focus,
.grw-delete-widget-btn:hover,
.grw-delete-widget-btn:focus {
    color: #8a2424 !important;
    border-color: #b32d2e !important;
    background: #fef2f2 !important;
}

.grw-delete-widget-btn:disabled {
    opacity: 0.7;
}

.grw-admin-notices {
    margin: 0 0 12px;
}

/* Place sync notice (non-blocking, informational) */
.grw-sync-notice {
    margin-bottom: 16px;
    border: 1px solid var(--grw-brand-border);
    border-radius: var(--grw-radius-sm);
    background: var(--grw-accent-light);
}

.grw-sync-notice[hidden] {
    display: none !important;
}

.grw-sync-notice__inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
}

.grw-sync-notice__spinner {
    flex-shrink: 0;
    margin-top: 2px;
}

.grw-sync-notice__content {
    flex: 1;
    min-width: 0;
}

.grw-sync-notice__title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--grw-accent);
    line-height: 1.4;
}

.grw-sync-notice__hint {
    margin: 0;
    font-size: 12px;
    color: var(--grw-text-muted);
    line-height: 1.45;
}

.grw-sync-notice__dismiss {
    flex-shrink: 0;
    margin: -2px -4px 0 0;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: var(--grw-text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.grw-sync-notice__dismiss:hover,
.grw-sync-notice__dismiss:focus {
    color: var(--grw-text);
}

.grw-sync-notice--error {
    border-color: #fecaca;
    background: #fff7f7;
}

.grw-sync-notice--error .grw-sync-notice__title {
    color: #991b1b;
}

.grw-sync-notice--error .grw-sync-notice__spinner {
    display: none;
}

.grw-sync-notice__retry[hidden] {
    display: none !important;
}
}

.grw-copy-toast {
    position: fixed;
    z-index: 100001;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 14px;
    border: 1px solid #A7F3D0;
    border-radius: 10px;
    background: #ECFDF5;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    animation: grw-toast-in 0.25s ease both;
}

.grw-copy-toast.is-leaving {
    opacity: 0;
    transition: opacity 0.18s ease;
}

.grw-copy-toast__icon {
    flex-shrink: 0;
    color: #059669;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.grw-copy-toast__text {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #047857;
    line-height: 1.4;
}

.grw-sync-toast {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 14px;
    border: 1px solid #A7F3D0;
    border-radius: var(--grw-radius-sm);
    background: #ECFDF5;
    animation: grw-toast-in 0.25s ease both;
}

.grw-sync-toast[hidden] {
    display: none !important;
}

.grw-sync-toast--warning {
    border-color: #FDE68A;
    background: #FFFBEB;
}

.grw-sync-toast--warning .grw-sync-toast__icon {
    color: #D97706;
}

.grw-sync-toast__icon {
    flex-shrink: 0;
    color: #059669;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.grw-sync-toast__text {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #047857;
    line-height: 1.4;
}

.grw-sync-toast--warning .grw-sync-toast__text {
    color: #92400E;
}

.grw-preview-first-toast {
    position: relative;
    z-index: 5;
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    margin: 8px 16px 0;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}
.grw-preview-first-toast[hidden] {
    display: none !important;
}
.grw-preview-first-toast__inner {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 1rem;
    background: #0f172a;
    color: #f8fafc;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
}
.grw-preview-first-toast__title {
    font-weight: 700;
    margin: 0 0 0.2rem;
    font-size: 0.9rem;
}
.grw-preview-first-toast__body {
    margin: 0;
    font-size: 0.8rem;
    color: #cbd5e1;
}
.grw-preview-first-toast__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}
.grw-preview-first-toast__actions[hidden] {
    display: none !important;
}
#grwi-preview-first-toast-cta,
#grwi-preview-first-toast-undo {
    min-height: 44px;
}
.grw-preview-first-toast__close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
}
@media (max-width: 640px) {
    .grw-preview-first-toast {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-left: max(12px, env(safe-area-inset-left, 0px));
        margin-right: max(12px, env(safe-area-inset-right, 0px));
        max-width: none;
    }
}

@keyframes grw-toast-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Unlock / entitlement focus modal */
.grw-unlock-modal {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.grw-unlock-modal[hidden] {
    display: none !important;
}

.grw-unlock-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.grw-unlock-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--grw-border);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
    padding: 22px 24px 20px;
}

.grw-unlock-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: var(--grw-text-muted);
    cursor: pointer;
    padding: 4px 6px;
}

.grw-unlock-modal__title {
    margin: 0 28px 10px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--grw-text);
    line-height: 1.3;
}

.grw-unlock-modal__body {
    margin: 0 0 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--grw-text);
}

.grw-unlock-modal__supporting {
    margin: 0 0 14px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--grw-text-muted);
}

.grw-unlock-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.grw-unlock-modal__primary {
    font-weight: 600 !important;
}

.grw-unlock-modal__footer {
    margin: 14px 0 0;
    font-size: 0.75rem;
    color: var(--grw-text-muted);
}

.grw-unlock-modal__note {
    margin: 10px 0 0;
    font-size: 0.75rem;
    color: var(--grw-text-muted);
}

.grw-unlock-modal__link-only {
    display: inline-block;
    margin-top: 8px;
    padding: 0;
    background: none;
    border: 0;
    color: #2563EB;
    font-size: 0.8125rem;
    cursor: pointer;
    text-decoration: underline;
}

/* Free-with-account unlock modal — blue accent */
.grw-unlock-modal--linked_free .grw-unlock-modal__panel {
    border-top: 3px solid #2563EB;
}

.grw-unlock-modal--linked_free .grw-unlock-modal__primary {
    background: #2563EB !important;
    border-color: #1D4ED8 !important;
    color: #fff !important;
}

.grw-unlock-modal--linked_free .grw-unlock-modal__primary:hover,
.grw-unlock-modal--linked_free .grw-unlock-modal__primary:focus {
    background: #1D4ED8 !important;
    border-color: #1E40AF !important;
}

/* Site plan unlock modal — purple accent */
.grw-unlock-modal--site .grw-unlock-modal__panel {
    border-top: 3px solid #7C3AED;
}

.grw-unlock-modal--site .grw-unlock-modal__primary {
    background: #7C3AED !important;
    border-color: #6D28D9 !important;
    color: #fff !important;
}

.grw-unlock-modal--site .grw-unlock-modal__primary:hover,
.grw-unlock-modal--site .grw-unlock-modal__primary:focus {
    background: #6D28D9 !important;
    border-color: #5B21B6 !important;
}

.grwi-review-sync {
    margin-top: 0.45rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    background: #fff1f2;
}
.grwi-review-sync__lead {
    margin: 0;
    color: #9f1239;
    font-size: 12px;
    font-weight: 550;
    line-height: 1.35;
}
.grwi-review-sync__line {
    margin: 0.15rem 0 0;
    color: #881337;
    font-size: 12px;
    font-weight: 450;
    line-height: 1.4;
}
.grwi-review-sync__cta {
    margin-left: 0.2rem;
    color: #be123c;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.grwi-review-sync__cta:hover { color: #9f1239; }

.grwi-review-ask {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    padding: 14px 16px 14px 14px;
    border: 1px solid #d7e6fb;
    border-radius: 12px;
    background: #f3f8ff;
}
.grwi-review-ask__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #2271b1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.grwi-review-ask__logo .dashicons {
    width: 28px;
    height: 28px;
    font-size: 28px;
    line-height: 28px;
}
.grwi-review-ask__copy {
    flex: 1 1 auto;
    min-width: 0;
}
.grwi-review-ask__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.grwi-review-ask__stars {
    display: inline-flex;
    gap: 1px;
    color: #f5b400;
}
.grwi-review-ask__text {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}
.grwi-review-ask__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.grwi-review-ask__leave,
.grwi-review-ask__later,
.grwi-review-ask__dismiss,
.grwi-review-ask__close {
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
}
.grwi-review-ask__leave {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff !important;
    font-weight: 650;
    text-decoration: none !important;
    white-space: nowrap;
}
.grwi-review-ask__leave:hover,
.grwi-review-ask__leave:focus {
    background: #1d4ed8;
    color: #fff !important;
}
.grwi-review-ask__later {
    padding: 7px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
}
.grwi-review-ask__later:hover,
.grwi-review-ask__later:focus {
    border-color: #94a3b8;
    color: #0f172a;
}
.grwi-review-ask__dismiss {
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.grwi-review-ask__dismiss:hover,
.grwi-review-ask__dismiss:focus {
    color: #0f172a;
}
.grwi-review-ask__close {
    width: 28px;
    height: 28px;
    margin-left: 2px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    font-size: 20px;
    line-height: 1;
}
.grwi-review-ask__close:hover,
.grwi-review-ask__close:focus {
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
}
@media (max-width: 860px) {
    .grwi-review-ask {
        flex-wrap: wrap;
    }
    .grwi-review-ask__actions {
        width: 100%;
        margin-left: 58px;
        flex-wrap: wrap;
    }
}

.grwi-dash-gap {
    margin: 16px 0 20px;
}
.grwi-dash-gap__card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid #d7e6fb;
    border-radius: 12px;
    background: #f3f8ff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.grwi-dash-gap__mark {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    align-self: flex-start;
    margin-top: 2px;
}
.grwi-dash-gap__mark svg {
    display: block;
    width: 38px;
    height: 38px;
}
.grwi-dash-gap__copy {
    flex: 1 1 auto;
    min-width: 0;
}
.grwi-dash-gap__title {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}
.grwi-dash-gap__body {
    margin: 4px 0 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}
.grwi-dash-gap__offer {
    margin: 8px 0 0;
    color: #1e3a8a;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}
.grwi-dash-gap__offer strong {
    color: #0f172a;
    font-weight: 700;
}
.grwi-dash-gap__actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    min-width: 196px;
}
.grwi-dash-gap__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.grwi-dash-gap__btn--primary {
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}
.grwi-dash-gap__btn--primary:hover,
.grwi-dash-gap__btn--primary:focus {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff !important;
}
.grwi-dash-gap__btn--secondary {
    background: #fff;
    border: 1px solid #bfdbfe;
    color: #2563eb !important;
}
.grwi-dash-gap__btn--secondary:hover,
.grwi-dash-gap__btn--secondary:focus {
    background: #f0f6ff;
    border-color: #93bbf8;
    color: #1d4ed8 !important;
}
.grwi-dash-gap__compare {
    margin-top: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb !important;
    text-decoration: none !important;
}
.grwi-dash-gap__compare:hover,
.grwi-dash-gap__compare:focus {
    text-decoration: underline !important;
    color: #1d4ed8 !important;
}
@media (max-width: 780px) {
    .grwi-dash-gap__card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .grwi-dash-gap__actions {
        width: 100%;
        min-width: 0;
    }
}

.grw-wp-review {
    padding: 16px 16px 14px;
    border-radius: 12px;
    border: 1px solid #e6e8ee;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    text-align: left;
}
.grw-wp-review__head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.grw-wp-review__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f6fb;
    color: #2271b1;
}
.grw-wp-review__logo .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 24px;
}
.grw-wp-review__head-copy {
    min-width: 0;
}
.grw-wp-review__stars {
    display: flex;
    justify-content: flex-start;
    gap: 2px;
    margin: 3px 0 0;
    color: #f5b400;
}
.grw-wp-review__title {
    margin: 0;
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.grw-wp-review__text {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}
.grw-wp-review__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 14px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff !important;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none !important;
}
.grw-wp-review__btn:hover,
.grw-wp-review__btn:focus {
    background: #1d4ed8;
    color: #fff !important;
}
.grw-wp-review__feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 12px 0 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
}
.grw-wp-review__feedback svg {
    flex: 0 0 auto;
    color: #94a3b8;
}
.grw-wp-review__feedback a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.grw-wp-review__feedback a:hover,
.grw-wp-review__feedback a:focus {
    text-decoration: underline;
}
