@import url("https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css");
@import url("https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css");

.automation-builder__status {
	margin-top: 16px;
}

.datetime-picker__alt-input {
	width: 100%;
	max-width: 260px;
	padding: 0.5rem;
	border: 1px solid #c9cccf;
	border-radius: 6px;
	background: #ffffff;
	font: inherit;
}

.datetime-picker__alt-input:focus {
	outline: none;
	border-color: #1c73e8;
	box-shadow: 0 0 0 1px rgba(28, 115, 232, 0.25);
}

.datetime-picker__alt-input:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.automation-builder__wait-until {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.automation-builder__wait-until-label {
	font-weight: 600;
	color: #202223;
}

.automation-builder__wait-until-input {
	max-width: 260px;
	padding: 0.5rem;
	border: 1px solid #c9cccf;
	border-radius: 6px;
	background: #ffffff;
	font: inherit;
}

.automation-builder__wait-until-input:disabled {
	opacity: 0.6;
	cursor: wait;
}
/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Automation builder layout */
.automation-builder {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
	align-items: start;
}

.automation-builder__added,
.automation-builder__available {
	background: #ffffff;
	border: 1px solid #dde1e6;
	border-radius: 12px;
	padding: 1.5rem;
	min-height: 420px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.automation-builder__added {
	grid-column: span 2;
}

.automation-panel__header h2 {
	margin: 0;
	font-size: 1.2rem;
}

.automation-panel__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
}

.automation-index__create-form {
	display: inline-block;
}

.automation-panel__heading {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	flex: 1;
}

.automation-panel__header p {
	margin: 0.25rem 0 0;
	color: #6d7175;
}

s-page,
s-section {
	display: block;
	overflow: visible;
}

.automation-builder__message-counter {
	margin-top: 0;
}

.automation-builder__message-test {
	margin-top: 0.5rem;
}


.automation-builder__title {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.automation-builder__title-label {
	font-weight: 600;
	color: #202223;
}

.automation-builder__title-input {
	max-width: 420px;
}

.automation-builder__input-error {
	border-color: #d72c0d !important;
	box-shadow: 0 0 0 1px rgba(215, 44, 13, 0.25);
}

.automation-builder__list,
.automation-builder__catalog {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.automation-builder__list-item,
.automation-builder__catalog-item {
	border: 1px solid #d2d5d8;
	border-radius: 8px;
	padding: 1rem;
	background: #f6f6f7;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.automation-builder__list-item {
	flex-direction: column;
}

.automation-builder__item-header {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	width: 100%;
}

.automation-builder__item-info h3 {
	margin: 0 0 0.25rem;
	font-size: 1rem;
}

.automation-builder__item-info p {
	margin: 0;
	color: #6d7175;
}

.automation-builder__step-label {
	display: inline-block;
	margin-bottom: 0.35rem;
	font-size: 0.85rem;
	color: #5c6ac4;
	font-weight: 600;
}

.automation-builder__item-actions {
	display: flex;
	align-items: flex-start;
}

.automation-builder__empty {
	text-align: center;
	padding: 2rem 1rem;
	border: 1px dashed #c9cccf;
	border-radius: 8px;
	background: #fafbfb;
}

.automation-builder__empty h3 {
	margin: 0 0 0.5rem;
}

.automation-builder__message {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}


.automation-builder__message-tags {
	display: flex;
	flex-direction: row;
	gap: 0.35rem;
}

.automation-builder__message-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.automation-builder__message-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.campaign-builder {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
	gap: 2rem;
	align-items: flex-start;
}

.campaign-builder__form {
	background: #ffffff;
	border: 1px solid #dde1e6;
	border-radius: 12px;
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.campaign-form__group {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.campaigns-actions {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 1.25rem;
}

.segments-actions {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 1rem;
}

.automations-actions {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 1rem;
}

.campaign-form__label {
	font-weight: 600;
	color: #202223;
}

.campaign-form__input,
.campaign-form__textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #c9cccf;
	border-radius: 8px;
	font: inherit;
	background-color: #ffffff;
}

.campaign-form__textarea {
	min-height: 140px;
	resize: vertical;
}

.campaign-form__select {
	width: 100%;
}

/* Multi-select tags (select2 4.1): one bordered box, chips with the remove
   "×" on their left, and the search cursor inline after the last chip. */
.select2-container--default .select2-selection--multiple {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 5px 8px;
	border: 1px solid #8a8a8a;
	border-radius: 8px;
	background: #ffffff;
	cursor: text;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
	border-color: #303030;
	box-shadow: 0 0 0 1px #303030;
}

/* Let the chips and the search field share one flex row. */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
	display: contents;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 2px 10px 2px 30px;
	border: 1px solid #b5b5b5;
	border-radius: 6px;
	background: #ebebeb;
	color: #303030;
	font-size: 0.875rem;
	line-height: 1.5;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
	padding: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-right: 1px solid #b5b5b5;
	border-radius: 6px 0 0 6px;
	background: transparent;
	color: #303030;
	font-size: 1rem;
	font-weight: 700;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
	background: #d4d4d4;
	color: #000000;
	outline: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
	order: 99;
	margin: 0 0 0 auto;
	padding: 0 4px;
	font-size: 1.1rem;
}

.select2-container--default .select2-search--inline {
	flex: 1 1 80px;
	min-width: 80px;
}

.select2-container--default .select2-search--inline .select2-search__field {
	width: 100% !important;
	height: 26px;
	margin: 0;
	padding: 0 2px;
	font: inherit;
	font-size: 0.875rem;
	line-height: 26px;
}

.campaign-form__counter {
	margin: 0;
	font-size: 0.85rem;
	color: #6d7175;
}

.campaign-form__tags,
.campaign-form__test {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.campaign-retry-button {
	padding: 0.4rem 1rem;
	border-radius: 8px;
	border: 1px solid #c9cccf;
	background: #ffffff;
	color: #202223;
	font-weight: 600;
	cursor: pointer;
}

.campaign-retry-button:hover {
	border-color: #1c73e8;
	color: #1c73e8;
}

.campaign-form__actions {
	margin-top: 0.5rem;
}

.campaign-builder__preview {
	display: flex;
	justify-content: center;
	align-items: center;
}

.campaign-preview {
	position: relative;
	width: 260px;
	padding: 1rem;
	border: 10px solid #121212;
	border-radius: 36px;
	background: linear-gradient(180deg, #f3f3f5 0%, #e3e4e8 100%);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.campaign-preview__speaker {
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 6px;
	border-radius: 3px;
	background: #2f3032;
}

.campaign-preview__screen {
	background: #ffffff;
	border-radius: 24px;
	padding: 1.5rem 1rem;
	min-height: 420px;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.campaign-preview__status-bar {
	display: flex;
	justify-content: space-between;
	color: #6d7175;
	font-size: 0.75rem;
}

.campaign-preview__message-title {
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.campaign-preview__message-body {
	background: #e3f1ff;
	border-radius: 16px;
	padding: 0.75rem;
	color: #202223;
	line-height: 1.4;
	font-size: 0.95rem;
}

.campaign-preview__timestamp {
	margin-top: 0.35rem;
	font-size: 0.75rem;
	color: #6d7175;
}

.dashboard-hero {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.5rem;
	background: linear-gradient(135deg, #f7faff 0%, #eef4ff 60%, #e8f0fe 100%);
	border: 1px solid #d8e4f8;
	border-radius: 16px;
	padding: 2rem 2.5rem;
}

.dashboard-hero__logo {
	height: 28px;
	width: auto;
	margin-bottom: 12px;
}

.dashboard-hero__title {
	margin: 0 0 6px;
	font-size: 1.5rem;
	font-weight: 700;
	color: #111;
}

.dashboard-hero__subtitle {
	margin: 0;
	font-size: 0.95rem;
	color: #666;
	max-width: 460px;
}

.dashboard-hero__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.dashboard-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 22px;
	border-radius: 10px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.25s ease;
	cursor: pointer;
	border: 2px solid transparent;
}

.dashboard-hero__btn--primary {
	background: #1863DC;
	color: #fff;
	border-color: #1863DC;
}

.dashboard-hero__btn--primary:hover {
	background: #1454b8;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(24, 99, 220, 0.3);
}

.dashboard-hero__btn--outline {
	background: #fff;
	color: #1863DC;
	border-color: #1863DC;
}

.dashboard-hero__btn--outline:hover {
	background: #1863DC;
	color: #fff;
}

.dashboard-hero__btn--ghost {
	background: #fff;
	color: #1863DC;
	border-color: #d0d5dd;
}

.dashboard-hero__btn--ghost:hover {
	background: #f0f4ff;
	border-color: #1863DC;
}

.dashboard-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
	align-items: start;
}

.dashboard-footer__links-item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.dashboard-footer__links-item a {
	color: #202223;
	text-decoration: none;
	font-weight: 600;
}

.dashboard-footer__links-item a:hover {
	text-decoration: underline;
}

.dashboard-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

.dashboard-card {
	background: #ffffff;
	border: 1px solid #dfe3e8;
	border-radius: 12px;
	padding: 1rem;
	min-height: 140px;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.dashboard-card__label {
	margin: 0;
	font-size: 0.85rem;
	color: #6d7175;
}

.dashboard-card__value {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 600;
	color: #202223;
}

.dashboard-card__value-meta {
	display: inline-block;
	margin-left: 0.25rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: #6d7175;
}

.dashboard-card__description {
	margin: 0;
	color: #6d7175;
	font-size: 0.9rem;
}

.dashboard-card--billing {
	grid-column: span 2;
}

.billing-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.billing-card__details {
	display: flex;
	gap: 1rem;
	margin-top: 0.25rem;
}

.billing-card__detail {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.billing-card__detail-label {
	font-size: 0.8rem;
	color: #6d7175;
}

.billing-card__detail-value {
	font-size: 0.95rem;
	font-weight: 600;
	color: #202223;
}

.billing-card__detail-value--success {
	color: #008060;
}

.billing-card__credits {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-top: 0.25rem;
}

.billing-card__credits-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.billing-card__credits-count {
	font-size: 0.85rem;
	color: #202223;
}

.billing-card__progress {
	height: 6px;
	background: #e4e5e7;
	border-radius: 3px;
	overflow: hidden;
}

.billing-card__progress-bar {
	height: 100%;
	border-radius: 3px;
	transition: width 0.3s ease;
}

.billing-card__progress-bar--success {
	background: #008060;
}

.billing-card__progress-bar--warning {
	background: #b98900;
}

.billing-card__progress-bar--critical {
	background: #d72c0d;
}

/* ── Restock hero (restock notifications page) ── */
.restock-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.restock-hero__subtitle {
	margin: 0;
	font-size: 0.85rem;
	color: #6d7175;
}

.restock-stats {
	display: flex;
	gap: 6px;
}

.restock-stat {
	display: flex;
	align-items: baseline;
	gap: 4px;
	padding: 4px 12px;
	border: 1px solid #e4e5e7;
	border-radius: 8px;
	background: #fff;
}

.restock-stat__value {
	font-size: 0.95rem;
	font-weight: 700;
	color: #202223;
}

.restock-stat__value--pending {
	color: #b98900;
}

.restock-stat__value--success {
	color: #1863DC;
}

.restock-stat__value--subdued {
	color: #8c9196;
}

.restock-stat__label {
	font-size: 0.75rem;
	color: #8c9196;
}

/* ── Restock popup setup guide (restock notifications page) ── */
.restock-setup {
	color: #303030;
	font-size: 13px;
	line-height: 20px;
}

.restock-setup__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 20px 0;
}

.restock-setup__heading {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.restock-setup__title {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	font-weight: 650;
}

.restock-setup__subtitle {
	margin: 0;
	color: #616161;
}

.restock-setup__toggle {
	flex: none;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #4a4a4a;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.restock-setup__toggle:hover {
	background: #f1f1f1;
}

.restock-setup__toggle svg {
	transition: transform 0.15s ease;
}

.restock-setup--collapsed .restock-setup__toggle svg {
	transform: rotate(180deg);
}

.restock-setup--collapsed .restock-setup__footer {
	display: none;
}

.restock-setup__progress {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px 16px;
	color: #616161;
	white-space: nowrap;
}

.restock-setup__progress-track {
	flex: 1;
	height: 6px;
	border-radius: 3px;
	background: #e3e3e3;
	overflow: hidden;
}

.restock-setup__progress-bar {
	height: 100%;
	border-radius: 3px;
	background: #303030;
}

.restock-setup__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0 8px 8px;
}

.restock-setup__body[hidden] {
	display: none;
}

.restock-step {
	display: flex;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
}

.restock-step__icon {
	flex: none;
	color: #8a8a8a;
}

.restock-step--done .restock-step__icon {
	color: #303030;
}

.restock-step--current {
	padding: 14px 12px 16px;
	background: #f7f7f7;
}

.restock-step--disabled {
	color: #8a8a8a;
}

.restock-step--disabled .restock-step__icon {
	color: #cccccc;
}

.restock-step__content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.restock-step__row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	min-height: 22px;
}

.restock-step__title {
	margin: 0 auto 0 0;
	font-size: 13px;
	line-height: 22px;
	font-weight: 600;
}

.restock-step--current .restock-step__title {
	font-size: 14px;
	font-weight: 650;
}

.restock-step--done .restock-step__title {
	color: #616161;
	text-decoration: line-through;
	text-decoration-color: #b5b5b5;
}

.restock-step__split {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.restock-step__main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.restock-step__text {
	margin: 0;
	max-width: 460px;
	color: #616161;
}

.restock-step__text strong {
	color: #303030;
}

.restock-step__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.restock-step__hint {
	margin: 0;
	color: #616161;
	font-size: 12px;
}

.restock-step__manual {
	margin: 8px 0;
	padding: 12px 16px 12px 34px;
	max-width: 460px;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.restock-setup__picker,
.restock-setup__picker-form {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.restock-setup__picker-form {
	flex-wrap: nowrap;
}

.restock-setup__picker s-select {
	width: 220px;
}

.restock-setup__picker-label {
	color: #616161;
}

.restock-setup__callout {
	padding: 12px 14px;
	border-radius: 10px;
	background: #fee9e8;
	color: #5e0715;
}

.restock-setup__callout p {
	margin: 4px 0 0;
}

.restock-setup__disclosure summary {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	font-weight: 550;
	color: #303030;
	list-style: none;
}

.restock-setup__disclosure summary::-webkit-details-marker {
	display: none;
}

.restock-setup__disclosure summary::after {
	content: "";
	width: 6px;
	height: 6px;
	margin: 0 2px 3px 4px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}

.restock-setup__disclosure[open] summary::after {
	margin-bottom: -3px;
	transform: rotate(-135deg);
}

.restock-setup__footer {
	display: flex;
	align-items: center;
	gap: 8px 20px;
	flex-wrap: wrap;
	padding: 12px 20px;
	background: #f7f7f7;
	border-top: 1px solid #ebebeb;
	color: #616161;
	font-size: 12px;
}

.restock-setup__footer > span {
	margin-right: auto;
}

.restock-setup__footer .restock-setup__disclosure summary {
	font-weight: 500;
	color: #005bd3;
}

.restock-setup__footer .restock-setup__disclosure[open] {
	flex-basis: 100%;
}

.restock-setup__footer .restock-setup__disclosure p {
	margin: 6px 0 0;
	max-width: 620px;
}

.restock-setup__live {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 16px 20px;
}

.restock-setup__live-icon {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #cdfee1;
	color: #0c5132;
	display: flex;
	align-items: center;
	justify-content: center;
}

.restock-setup__live-text {
	flex: 1;
	min-width: 240px;
}

.restock-setup__live-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* Product page sketch showing where the block lands */
.restock-sketch {
	flex: none;
	width: 280px;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.restock-sketch figcaption {
	color: #616161;
	font-size: 12px;
	text-align: center;
}

.restock-sketch__page {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
}

.restock-sketch__product {
	display: flex;
	gap: 12px;
}

.restock-sketch__image {
	flex: none;
	width: 96px;
	height: 150px;
	border-radius: 6px;
	background: #ebebeb;
}

.restock-sketch--apps .restock-sketch__image {
	height: 120px;
}

.restock-sketch__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.restock-sketch__line {
	height: 7px;
	border-radius: 3px;
	background: #e3e3e3;
}

.restock-sketch__line--title {
	height: 9px;
	width: 85%;
	background: #d4d4d4;
}

.restock-sketch__line--short {
	width: 40%;
}

.restock-sketch__line--medium {
	width: 55%;
}

.restock-sketch__line--faint {
	height: 6px;
	width: 80%;
	background: #ebebeb;
}

.restock-sketch__sold-out {
	height: 22px;
	margin-top: 4px;
	border-radius: 5px;
	background: #b5b5b5;
	color: #fff;
	font-size: 10px;
	line-height: 22px;
	font-weight: 600;
	text-align: center;
}

.restock-sketch__block {
	height: 30px;
	border-radius: 6px;
	border: 1.5px dashed #005bd3;
	background: #eaf4ff;
	color: #00527c;
	font-size: 10px;
	font-weight: 650;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

@media (max-width: 700px) {
	.restock-step__split {
		flex-direction: column;
	}

	.restock-sketch {
		width: 100%;
		max-width: 320px;
	}
}

/* ── Subscription card (billing page) ── */
.subscription-card {
	background: #fff;
	border: 1px solid #e4e5e7;
	border-radius: 14px;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.subscription-card--empty {
	padding: 28px 24px;
	text-align: center;
}

.subscription-card__empty-title {
	margin: 0 0 4px;
	font-size: 1.1rem;
	font-weight: 650;
	color: #202223;
}

.subscription-card__empty-text {
	margin: 0;
	font-size: 0.9rem;
	color: #6d7175;
}

.subscription-card__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 24px;
	flex-wrap: wrap;
}

.subscription-card__plan {
	display: flex;
	align-items: center;
	gap: 10px;
}

.subscription-card__name {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #202223;
}

.subscription-card__status {
	display: inline-block;
	background: #e3f5ef;
	color: #008060;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 3px 12px;
	border-radius: 20px;
}

.subscription-card__status--warning {
	background: #fef3cd;
	color: #8a6d3b;
}

.subscription-card__meta {
	display: flex;
	gap: 20px;
}

.subscription-card__detail {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.subscription-card__detail-label {
	font-size: 0.75rem;
	color: #8c9196;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-weight: 500;
}

.subscription-card__detail-value {
	font-size: 0.95rem;
	font-weight: 600;
	color: #202223;
}

.subscription-card__detail-value--accent {
	color: #1863DC;
}

.subscription-card__credits {
	padding: 0 24px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.subscription-card__credits-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.subscription-card__credits-count {
	font-size: 0.85rem;
	color: #202223;
}

.subscription-card__progress {
	height: 6px;
	background: #e4e5e7;
	border-radius: 3px;
	overflow: hidden;
}

.subscription-card__progress-bar {
	height: 100%;
	border-radius: 3px;
	transition: width 0.3s ease;
}

.subscription-card__progress-bar--success {
	background: #1863DC;
}

.subscription-card__progress-bar--warning {
	background: #b98900;
}

.subscription-card__progress-bar--critical {
	background: #d72c0d;
}

.subscription-card__banner {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #fef8e8;
	border-top: 1px solid #f5e6b8;
	font-size: 0.85rem;
	color: #8a6d3b;
	margin-top: auto;
}

.subscription-card__banner svg {
	flex-shrink: 0;
}

.subscription-card__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 14px 24px;
	border-top: 1px solid #f1f1f1;
	flex-wrap: wrap;
	margin-top: auto;
}

.subscription-card__hint {
	margin: 0;
	font-size: 0.85rem;
	color: #8c9196;
	flex: 1;
}

.subscription-card__cancel {
	background: transparent;
	border: 1.5px solid #d72c0d;
	color: #d72c0d;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 6px 16px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.subscription-card__cancel:hover {
	background: #d72c0d;
	color: #fff;
}

/* ── Plan cards (billing page) ── */
.billing-plans-page {
	margin-top: 24px;
}

.plan-cards-section {
	padding: 20px 20px 32px;
}

.plan-cards-section__heading {
	margin: 0 0 16px;
	font-size: 1.1rem;
	font-weight: 650;
	color: #202223;
}

.plan-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	align-items: start;
	margin-top: 16px;
}

.plan-card {
	background: #fff;
	border: 1px solid #e4e5e7;
	border-radius: 16px;
	padding: 28px 20px;
	text-align: center;
	position: relative;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.plan-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.plan-card--featured {
	border-color: #7c3aed;
	box-shadow: 0 8px 40px rgba(124, 58, 237, 0.12);
}

.plan-card--featured:hover {
	box-shadow: 0 8px 40px rgba(124, 58, 237, 0.2);
}

.plan-card--featured .plan-card__price {
	color: #7c3aed;
}

.plan-card--current {
	border-color: #1863DC;
	background: #f8faff;
}

.plan-card__badge {
	display: inline-block;
	background: #7c3aed;
	color: #fff;
	padding: 4px 16px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
	margin-bottom: 8px;
}

.plan-card__badge--current {
	background: #1863DC;
}

.plan-card__name {
	margin: 0 0 8px;
	font-size: 1.35rem;
	font-weight: 700;
	color: #202223;
}

.plan-card__description {
	margin: 0 0 4px;
	color: #6d7175;
	font-size: 0.9rem;
}

.plan-card__price {
	font-size: 2rem;
	font-weight: 700;
	color: #202223;
	margin: 12px 0 4px;
}

.plan-card__price span {
	font-size: 1rem;
	color: #6d7175;
	font-weight: 400;
}

.plan-card__discount {
	display: inline-block;
	background: #e3f5ef;
	color: #008060;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 3px 12px;
	border-radius: 12px;
	margin-bottom: 4px;
}

.plan-card__billing {
	margin: 0;
	font-size: 0.85rem;
	color: #8c9196;
}

.plan-card__features {
	list-style: none;
	margin: 16px 0 24px;
	padding: 0;
	text-align: left;
}

.plan-card__features li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 6px 0;
	font-size: 0.875rem;
	color: #555;
	line-height: 1.4;
}

.plan-card__features li svg {
	flex-shrink: 0;
	color: #10b981;
}

.plan-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 24px;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 2px solid transparent;
}

.plan-card__btn--primary {
	background: #7c3aed;
	color: #fff;
	border-color: #7c3aed;
}

.plan-card__btn--primary:hover {
	background: #6d28d9;
	border-color: #6d28d9;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.plan-card__btn--outline {
	background: transparent;
	color: #1863DC;
	border-color: #1863DC;
}

.plan-card__btn--outline:hover {
	background: #1863DC;
	color: #fff;
}

.plan-card__btn--disabled {
	background: #f6f6f7;
	color: #8c9196;
	border-color: #e4e5e7;
	cursor: default;
}

@media (max-width: 900px) {
	.plan-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.plan-cards {
		grid-template-columns: 1fr;
	}
}

/* ── Credit packs (billing page) ── */
.credit-packs-header {
	margin-bottom: 20px;
}

.credit-packs-header__title {
	margin: 0 0 4px;
	font-size: 1.1rem;
	font-weight: 650;
	color: #202223;
}

.credit-packs-header__subtitle {
	margin: 0 0 12px;
	font-size: 0.9rem;
	color: #6d7175;
}

.credit-packs-header__balance {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #f0f4ff;
	border: 1px solid #d0dffa;
	border-radius: 10px;
	padding: 8px 16px;
}

.credit-packs-header__balance-label {
	font-size: 0.85rem;
	color: #6d7175;
}

.credit-packs-header__balance-value {
	font-size: 0.95rem;
	font-weight: 700;
	color: #1863DC;
}

.credit-packs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.credit-pack {
	background: #fff;
	border: 1px solid #e4e5e7;
	border-radius: 14px;
	padding: 24px 20px;
	text-align: center;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.credit-pack:hover {
	border-color: #1863DC;
	box-shadow: 0 4px 16px rgba(24, 99, 220, 0.1);
}

.credit-pack__credits {
	font-size: 1.1rem;
	font-weight: 700;
	color: #202223;
	margin-bottom: 4px;
}

.credit-pack__price {
	font-size: 1.75rem;
	font-weight: 700;
	color: #1863DC;
	margin-bottom: 4px;
}

.credit-pack__note {
	margin: 0 0 16px;
	font-size: 0.8rem;
	color: #8c9196;
}

.credit-pack__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 10px 20px;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.25s ease;
	background: transparent;
	color: #1863DC;
	border: 2px solid #1863DC;
}

.credit-pack__btn:hover {
	background: #1863DC;
	color: #fff;
	box-shadow: 0 4px 12px rgba(24, 99, 220, 0.3);
}

.credit-packs-recent {
	margin-top: 24px;
}

.credit-packs-recent__title {
	margin: 0 0 8px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #202223;
}

.credit-packs-recent__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.credit-packs-recent__list li {
	padding: 6px 0;
	font-size: 0.875rem;
	color: #6d7175;
	border-bottom: 1px solid #f1f1f1;
}

.credit-packs-recent__list li:last-child {
	border-bottom: none;
}

.dashboard-card--list {
	display: flex;
	flex-direction: column;
}

.dashboard-card__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.dashboard-card__list li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: flex-start;
}

.dashboard-card__list strong {
	display: block;
	margin-bottom: 0.1rem;
}

.dashboard-panel {
	background: #ffffff;
	border: 1px solid #dde1e6;
	border-radius: 12px;
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.dashboard-panel__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
}

.dashboard-panel__header h2 {
	margin: 0;
}

.dashboard-panel__body h3 {
	margin: 0 0 0.35rem;
}

.dashboard-panel__text {
	margin: 0 0 0.5rem;
	color: #202223;
}

.dashboard-panel__empty {
	border: 1px dashed #c9cccf;
	border-radius: 8px;
	padding: 1rem;
	text-align: left;
}

.dashboard-panel__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
}

.dashboard-panel__card {
	border: 1px solid #e3e5e8;
	border-radius: 10px;
	padding: 1rem;
	background: #fdfdff;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.dashboard-panel__card-header {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	align-items: flex-start;
}

.dashboard-panel__card-header strong {
	display: block;
	margin-bottom: 0.2rem;
}

.dashboard-panel__card-actions {
	margin-top: auto;
	display: flex;
	gap: 0.5rem;
}

.dashboard-panels-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

@media (max-width: 1024px) {
	.dashboard-panels-grid {
		grid-template-columns: 1fr;
	}
}

.dashboard-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.dashboard-list li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: flex-start;
}

.dashboard-list__value {
	font-weight: 600;
	color: #202223;
}

.dashboard-table {
	width: 100%;
	border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
	padding: 0.75rem 0;
	border-bottom: 1px solid #ececec;
	text-align: left;
}

.dashboard-table th {
	font-size: 0.85rem;
	text-transform: uppercase;
	color: #6d7175;
}

.segments-empty-state {
	border: 1px dashed #c9cccf;
	border-radius: 8px;
	padding: 1.5rem;
	background: #fafbfb;
	color: #202223;
}

.segments-empty-state h3 {
	margin: 0 0 0.5rem;
}

.segments-empty-state p {
	margin: 0;
	color: #6d7175;
}

.segment-builder {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
}

.segment-builder__selected {
	grid-column: span 2;
}

.segment-builder__selected,
.segment-builder__available {
	background: #ffffff;
	border: 1px solid #dde1e6;
	border-radius: 12px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	overflow: visible;
}

.segment-panel__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
}

.segment-panel__heading {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.segment-panel__heading h2 {
	margin: 0;
}

.segment-panel__heading p {
	margin: 0;
	color: #6d7175;
}

.segment-builder__title-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.segment-form__input {
	width: 100%;
	max-width: 420px;
}

.segment-rules__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.segment-rules__group {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.segment-rules__group-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.segment-rules__group-separator {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0.25rem 0;
}

.segment-rules__group-separator-label {
	font-weight: 700;
	color: #1c73e8;
	background: #eef5ff;
	border-radius: 999px;
	padding: 0.15rem 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}


.segment-rules__entry {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.segment-rules__logic-row {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.segment-rules__logic-row + .segment-rules__item {
	margin-top: 0.25rem;
}

.segment-rules__entry.is-active .segment-rules__item {
	border-color: #1c73e8;
	box-shadow: 0 0 0 2px rgba(28, 115, 232, 0.2);
}

.segment-rules__entry--static .segment-rules__item {
	cursor: default;
}

.segment-rules__item {
	border: 1px solid #d2d5d8;
	border-radius: 10px;
	padding: 1rem;
	background: #f8f9fb;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
}

.segment-rules__item-body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.segment-rules__condition-label {
	font-size: 0.85rem;
	color: #6d7175;
}

.segment-rules__item-content strong {
	display: block;
	font-size: 1rem;
}

.segment-rules__item-content p {
	margin: 0;
	color: #6d7175;
}

.segment-rules__fields {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.segment-rules__field-helper {
	margin: 0.35rem 0 0;
	color: #6d7175;
	font-size: 0.85rem;
}

.segment-rules__field-required {
	margin-left: 0.35rem;
	color: #d72c0d;
	font-size: 0.8rem;
}

.segment-money-input {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	border: 1px solid #c9cccf;
	border-radius: 8px;
	background: #ffffff;
	padding: 0.35rem 0.5rem;
}

.segment-money-input__prefix {
	font-weight: 600;
	color: #202223;
}

.segment-money-input__entry {
	border: none;
	background: transparent;
	font: inherit;
	flex: 1;
	min-width: 0;
}

.segment-money-input__entry:focus {
	outline: none;
}

.segment-tag-input {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	min-height: 2.6rem;
	padding: 0.4rem 0.5rem;
	border: 1px solid #c9cccf;
	border-radius: 8px;
	background: #ffffff;
}

.segment-tag-input__tokens {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	flex: 1;
}

.segment-tag-input__token {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: #eef5ff;
	color: #1c73e8;
	font-size: 0.85rem;
	font-weight: 600;
}

.segment-tag-input__remove {
	border: none;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font-size: 0.9em;
	line-height: 1;
	padding: 0;
}

.segment-tag-input__entry {
	flex: 1;
	min-width: 8rem;
	border: none;
	font: inherit;
	padding: 0.15rem;
	background: transparent;
}

.segment-tag-input__entry:focus {
	outline: none;
}

.segment-rules__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.5rem;
	min-width: 160px;
}

.segment-rules__logic-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: #eef5ff;
	font-weight: 600;
	color: #1a1c1d;
	font-size: 0.9rem;
}

.segment-rules__logic-value {
	font-weight: 600;
	color: #1a1c1d;
}

.segment-rules__step {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.35rem;
}

.segment-rules__step-index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: #1c73e8;
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 600;
}

.segment-rules__remove {
	align-self: flex-end;
	background: none;
	border: none;
	color: #d72c0d;
	font-weight: 600;
	cursor: pointer;
}

.segment-rules__reorder {
	display: inline-flex;
	gap: 0.35rem;
}

.segment-rules__move {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 6px;
	border: 1px solid #c9cccf;
	background: #ffffff;
	color: #5c5f62;
	font-size: 0.7rem;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.segment-rules__move:hover {
	border-color: #1c73e8;
	color: #1c73e8;
	background: #eef5ff;
}

.segment-builder__empty {
	text-align: center;
	padding: 2rem 1rem;
	border: 1px dashed #c9cccf;
	border-radius: 8px;
	color: #6d7175;
	background: #fafbfb;
}

.segment-catalog {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}


.segment-catalog__panel {
	border: 1px solid #dde1e6;
	border-radius: 12px;
	padding: 1.25rem;
	background: #f6f6f7;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.segment-catalog__controls {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.segment-catalog__label {
	font-weight: 600;
	color: #202223;
}


.segment-catalog__combo {
	position: relative;
	overflow: visible;
}

.segment-catalog__combo-input {
	width: 100%;
	padding: 0.6rem 2.4rem 0.6rem 2.25rem;
	border-radius: 8px;
	border: 1px solid #c9cccf;
	font: inherit;
	background: #ffffff url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5 11.5H13.29L16.79 15L15 16.79L11.5 13.29V12.5L11.23 12.22C10.09 13.22 8.59 13.83 6.95 13.83C3.4 13.83 0.5 10.93 0.5 7.38C0.5 3.83 3.4 0.93 6.95 0.93C10.5 0.93 13.4 3.83 13.4 7.38C13.4 9.02 12.79 10.52 11.79 11.66L12.07 11.93L12.5 11.5ZM2.5 7.38C2.5 9.82 4.51 11.83 6.95 11.83C9.39 11.83 11.4 9.82 11.4 7.38C11.4 4.94 9.39 2.93 6.95 2.93C4.51 2.93 2.5 4.94 2.5 7.38Z' fill='%236D7175'/%3E%3C/svg%3E") no-repeat 0.75rem 50%;
	background-size: 16px;
}

.segment-catalog__combo-toggle {
	position: absolute;
	top: 6px;
	right: 6px;
	border: none;
	background: transparent;
	padding: 0.35rem;
	border-radius: 6px;
	cursor: pointer;
}

.segment-catalog__combo-caret {
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 6px solid #5c5f62;
}

.segment-catalog__dropdown {
	position: absolute;
	bottom: calc(100% + 0.25rem);
	left: 0;
	width: 100%;
	background: #ffffff;
	border: 1px solid #c9cccf;
	border-radius: 10px;
	box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.15);
	max-height: 320px;
	overflow-y: auto;
	z-index: 999;
	padding: 0.5rem 0;
}

.segment-catalog__dropdown-group {
	padding: 0.25rem 0.5rem 0.75rem;
}

.segment-catalog__dropdown-label {
	margin: 0.5rem 0 0.35rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6d7175;
}

.segment-catalog__dropdown-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.segment-catalog__dropdown-item {
	width: 100%;
	text-align: left;
	border: 1px solid #e1e3e5;
	border-radius: 8px;
	background: #f9fafb;
	padding: 0.5rem 0.75rem;
	cursor: pointer;
}

.segment-catalog__dropdown-item strong {
	display: block;
	font-size: 0.95rem;
}

.segment-catalog__dropdown-item:hover,
.segment-catalog__dropdown-item:focus {
	border-color: #1c73e8;
	background: #eef5ff;
}

.segment-catalog__dropdown-empty {
	margin: 0.5rem 0;
	padding: 0.5rem 0.75rem;
	font-size: 0.9rem;
	color: #6d7175;
}

.is-hidden {
	display: none !important;
}

.segment-catalog__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.segment-catalog__add {
	padding: 0.45rem 1.25rem;
	border-radius: 999px;
	border: none;
	background: #1c73e8;
	color: #ffffff;
	font-weight: 600;
	cursor: pointer;
}

.segment-catalog__clear {
	padding: 0.45rem 1.25rem;
	border-radius: 999px;
	border: 1px solid #c9cccf;
	background: #ffffff;
	color: #202223;
	font-weight: 600;
	cursor: pointer;
}

.segment-catalog__clear:hover {
	border-color: #1c73e8;
	color: #1c73e8;
}

.segment-catalog__new-rule {
	align-self: flex-start;
	padding: 0.45rem 1.25rem;
	border-radius: 999px;
	border: 1px solid #1c73e8;
	background: #eef5ff;
	color: #1c73e8;
	font-weight: 600;
	cursor: pointer;
}

.segment-catalog__new-rule:hover {
	background: #dbe9ff;
}

.segment-catalog__insert-hint {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	background: #eef5ff;
	color: #1c4f9c;
	font-size: 0.875rem;
}

.segment-catalog__insert-hint[hidden] {
	display: none;
}

.segment-catalog__insert-reset {
	border: none;
	background: none;
	padding: 0;
	color: #1c73e8;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.segment-logic {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.segment-logic__label {
	margin: 0;
	font-weight: 600;
	color: #202223;
}

.segment-logic__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.75rem;
}

.segment-logic__card {
	border: 1px solid #d2d5d8;
	border-radius: 10px;
	padding: 0.85rem;
	background: #ffffff;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.segment-logic__card-label {
	display: block;
	font-weight: 700;
	color: #202223;
}

.segment-logic__card-hint {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	color: #6d7175;
}

.segment-logic__card:hover,
.segment-logic__card:focus {
	border-color: #1c73e8;
	box-shadow: 0 0 0 2px rgba(28, 115, 232, 0.1);
}

.segment-logic__card.is-selected {
	border-color: #1c73e8;
	background: #eef5ff;
	box-shadow: 0 0 0 2px rgba(28, 115, 232, 0.15);
}

.segment-catalog__empty {
	margin: 0;
	color: #6d7175;
	font-size: 0.9rem;
}

.automation-builder__message-label {
	font-weight: 600;
	color: #202223;
}

.automation-builder__message-input {
	width: 100%;
	min-height: 120px;
	padding: 0.75rem;
	border: 1px solid #c9cccf;
	border-radius: 6px;
	background: #ffffff;
	font: inherit;
	resize: vertical;
}

.automation-builder__message-input:disabled {
	opacity: 0.6;
	cursor: wait;
}

.automation-builder__message-tags {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;

.automation-index__delete {
	display: inline-flex;
	margin: 0;
	vertical-align: middle;
}
	font-size: 0.875rem;
}

.automation-builder__message-tags-label {
	color: #6d7175;
}

.automation-builder__tag-button {
	line-height: 1;
}

.automation-builder__wait {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.automation-builder__wait-label {
	font-weight: 600;
	color: #202223;
}

.automation-builder__wait-fields {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.automation-builder__wait-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.automation-builder__wait-input {
	width: 120px;
	padding: 0.5rem;
	border: 1px solid #c9cccf;
	border-radius: 6px;
	background: #ffffff;
	font: inherit;
}

.automation-builder__wait-input:disabled {
	opacity: 0.6;
	cursor: wait;
}

.country-rate-selector {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.country-rate-selector__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.country-rate-selector__label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 600;
	color: #202223;
	font-size: 0.95rem;
}

.country-rate-selector__search-icon {
	flex-shrink: 0;
	color: #6d7175;
}

.country-rate-selector__native-select {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #c9cccf;
	border-radius: 8px;
	font: inherit;
	background-color: #ffffff;
}

/* ── Empty state ── */
.country-rate-selector__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 1.5rem 1rem;
	border: 1px dashed #c9cccf;
	border-radius: 12px;
	background: #fafbfc;
}

.country-rate-selector__empty-icon {
	color: #8c9196;
}

.country-rate-selector__empty-text {
	margin: 0;
	font-size: 0.875rem;
	color: #6d7175;
}

/* ── Result card ── */
.country-rate-selector__result {
	border: 1px solid #dfe3e8;
	border-radius: 12px;
	padding: 0;
	background: #f9fafb;
	overflow: hidden;
	animation: countryRateFadeIn 0.2s ease-out;
}

@keyframes countryRateFadeIn {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.country-rate-selector__result-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #e1e3e5;
	background: #ffffff;
}

.country-rate-selector__result-flag {
	font-size: 1.75rem;
	line-height: 1;
}

.country-rate-selector__result-title {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.country-rate-selector__rates {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0.25rem 0;
}

.country-rate-selector__rate-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem 1rem;
}

.country-rate-selector__rate-row + .country-rate-selector__rate-row {
	border-top: 1px solid #ebebeb;
}

.country-rate-selector__rate-label {
	font-size: 0.875rem;
	color: #6d7175;
}

.country-rate-selector__rate-label--plan {
	color: #1a7e37;
	font-weight: 500;
}

.country-rate-selector__rate-value {
	font-size: 1.05rem;
	font-weight: 600;
	color: #202223;
}

.country-rate-selector__rate-value--plan {
	color: #1a7e37;
}

.country-rate-selector__rate-row[hidden] {
	display: none;
}

.country-rate-selector__result[hidden] {
	display: none;
}

.country-rate-selector .select2-container {
	width: 100% !important;
}

.segment-builder__estimate {
	margin: 0.25rem 0 0;
	font-weight: 600;
}

.credits-banner {
	margin: 1rem 1rem 0;
}

.subscription-card__resume {
	margin-top: 0.75rem;
}

.public-page {
	max-width: 960px;
	margin: 0 auto;
	padding: 1rem;
}

.app-toast {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.75rem 1.25rem;
	border-radius: 8px;
	background: #303030;
	color: #ffffff;
	z-index: 10000;
}

.app-toast--error {
	background: #8e1f0b;
}

.app-confirm {
	border: none;
	border-radius: 12px;
	padding: 1.25rem;
	max-width: 420px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.app-confirm::backdrop {
	background: rgba(0, 0, 0, 0.4);
}

.app-confirm__message {
	margin: 0 0 1rem;
}

.app-confirm__actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
}

.app-confirm__button {
	padding: 0.45rem 1rem;
	border-radius: 8px;
	border: 1px solid #c9cccf;
	background: #ffffff;
	font-weight: 600;
	cursor: pointer;
}

.app-confirm__button--primary {
	background: #303030;
	border-color: #303030;
	color: #ffffff;
}

.app-confirm__button--critical {
	background: #c5280c;
	border-color: #c5280c;
}

.settings-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.settings-field__label {
	font-size: 0.8125rem;
	font-weight: 500;
}
