.ghestihub-wrap {
	margin: 20px 20px 0 0;
	max-width: 1080px;
}

.ghestihub-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 8px;
}

.ghestihub-header__titles {
	flex: 1 1 auto;
	min-width: 0;
}

.ghestihub-header .wp-heading-inline {
	display: block;
	margin: 0 0 4px;
	padding: 0;
	line-height: 1.3;
}

.ghestihub-header p {
	margin: 0;
	color: #667874;
}

/* Suppress external admin notices on GhestiHub screens (except GhestiHub settings errors) */
.woocommerce_page_ghestihub .notice:not(.settings-error):not(.ghestihub-notice),
.woocommerce_page_ghestihub div.error:not(.settings-error):not(.ghestihub-notice),
.woocommerce_page_ghestihub div.updated:not(.settings-error):not(.ghestihub-notice) {
	display: none !important;
}

.ghestihub-wrap > .notice,
.ghestihub-wrap > .updated,
.ghestihub-wrap > .error {
	margin: 12px 0 16px;
}

.ghestihub-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: 72px;
	padding: 4px 6px;
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	flex: 0 0 auto;
}

.ghestihub-logo img {
	display: block;
	height: 64px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
}

.ghestihub-version {
	padding: 6px 10px;
	border-radius: 999px;
	background: #e7f4f1;
	color: #134e4a;
	font-size: 12px;
	flex: 0 0 auto;
}

.ghestihub-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 20px;
}

.ghestihub-tabs__item {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
	color: #134e4a;
	text-decoration: none;
	border: 1px solid #dbe7e4;
	font-weight: 600;
}

.ghestihub-tabs__item.is-active,
.ghestihub-tabs__item:hover {
	background: #0f766e;
	border-color: #0f766e;
	color: #fff;
}

.ghestihub-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 240px;
	gap: 16px;
}

.ghestihub-card,
.ghestihub-stat {
	background: #fff;
	border: 1px solid #dbe7e4;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 118, 110, 0.06);
}

.ghestihub-card {
	padding: 22px;
}

.ghestihub-card h2 {
	margin: 0 0 16px;
	font-size: 16px;
}

.ghestihub-lead {
	margin: 0 0 18px;
	color: #3f4f4c;
}

.ghestihub-toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid #edf3f1;
}

.ghestihub-toggle-row:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.ghestihub-toggle-row em {
	display: block;
	margin-top: 4px;
	color: #667874;
	font-style: normal;
	font-size: 12px;
}

.ghestihub-field {
	padding: 14px 0;
	border-top: 1px solid #edf3f1;
}

.ghestihub-field label strong {
	display: block;
	margin-bottom: 8px;
}

.ghestihub-field select {
	width: 100%;
	max-width: 360px;
}

.ghestihub-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.ghestihub-card--banner {
	margin-top: 16px;
}

.ghestihub-field .description {
	margin: 8px 0 0;
	color: #667874;
	font-size: 12px;
}

.ghestihub-stats {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ghestihub-stat {
	padding: 16px;
}

.ghestihub-stat span {
	display: block;
	margin-bottom: 8px;
	color: #667874;
}

.ghestihub-stat strong {
	font-size: 22px;
	color: #134e4a;
}

.ghestihub-switch {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 26px;
	flex: 0 0 46px;
}

.ghestihub-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.ghestihub-switch__slider {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #c5d4d0;
	transition: 0.2s ease;
}

.ghestihub-switch__slider::before {
	content: "";
	position: absolute;
	top: 3px;
	right: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: 0.2s ease;
}

.ghestihub-switch input:checked + .ghestihub-switch__slider {
	background: #0f766e;
}

.ghestihub-switch input:checked + .ghestihub-switch__slider::before {
	transform: translateX(-20px);
}

.ghestihub-empty {
	padding: 28px;
	border: 1px dashed #b7cdc7;
	border-radius: 14px;
	background: #f7fbfa;
	text-align: center;
}

.ghestihub-empty p {
	margin: 8px 0 0;
	color: #4d605c;
}

.ghestihub-gateway-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ghestihub-gateway {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px;
	border: 1px solid #edf3f1;
	border-radius: 14px;
}

.ghestihub-gateway__info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ghestihub-gateway__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #fff;
	color: #0f766e;
	font-weight: 700;
	overflow: hidden;
	flex: 0 0 48px;
}

.ghestihub-gateway__icon img {
	width: auto;
	max-width: 100%;
	height: 36px;
	object-fit: contain;
	display: block;
}

.ghestihub-gateway h3 {
	margin: 0 0 4px;
	font-size: 14px;
}

.ghestihub-gateway p {
	margin: 0;
	color: #5b6f6b;
}

.ghestihub-gateway__links {
	margin-top: 8px !important;
	font-size: 12px;
}

.ghestihub-gateway__links a {
	text-decoration: none;
}

.ghestihub-actions {
	margin-top: 16px;
}

.ghestihub-log-table code {
	font-size: 12px;
}

.ghestihub-dashboard__toolbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
}

.ghestihub-dashboard__toolbar h2 {
	margin-bottom: 6px;
}

.ghestihub-dashboard__toolbar .ghestihub-lead {
	margin-bottom: 0;
}

.ghestihub-range {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 16px 0;
}

.ghestihub-range__item {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid #dbe7e4;
	background: #f7fbfa;
	color: #134e4a;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}

.ghestihub-range__item.is-active,
.ghestihub-range__item:hover {
	background: #0f766e;
	border-color: #0f766e;
	color: #fff;
}

.ghestihub-dashboard__hero {
	margin: 8px 0 18px;
	padding: 18px 20px;
	border-radius: 14px;
	background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
	color: #fff;
}

.ghestihub-dashboard__hero span {
	display: block;
	margin-bottom: 8px;
	opacity: 0.86;
	font-size: 13px;
}

.ghestihub-dashboard__hero strong {
	display: block;
	font-size: 28px;
	line-height: 1.2;
	color: #fff;
}

.ghestihub-kpi-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.ghestihub-kpi {
	padding: 14px;
	border: 1px solid #edf3f1;
	border-radius: 14px;
	background: #f7fbfa;
}

.ghestihub-kpi span {
	display: block;
	margin-bottom: 8px;
	color: #667874;
	font-size: 12px;
}

.ghestihub-kpi strong {
	display: block;
	color: #134e4a;
	font-size: 20px;
}

.ghestihub-kpi em {
	display: block;
	margin-top: 6px;
	color: #667874;
	font-style: normal;
	font-size: 12px;
}

.ghestihub-dashboard__subtitle {
	margin: 22px 0 12px;
	font-size: 14px;
}

.ghestihub-share-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ghestihub-share-list li {
	margin: 0 0 12px;
}

.ghestihub-share-list__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
	font-size: 13px;
}

.ghestihub-share-list__meta span {
	color: #5b6f6b;
}

.ghestihub-share-list__bar {
	height: 8px;
	border-radius: 999px;
	background: #e7f4f1;
	overflow: hidden;
}

.ghestihub-share-list__bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: #0f766e;
}

/* Anti-loss Fee & Discount Guide Box */
.ghestihub-guide-box {
	display: flex;
	gap: 16px;
	padding: 16px 20px;
	border-radius: 14px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	margin-bottom: 24px;
}

.ghestihub-guide-box__icon {
	font-size: 28px;
	line-height: 1;
	flex-shrink: 0;
	margin-top: 4px;
}

.ghestihub-guide-box__content h3 {
	margin: 0 0 6px;
	color: #166534;
	font-size: 16px;
	font-weight: 700;
}

.ghestihub-guide-box__content p {
	margin: 0 0 10px;
	color: #15803d;
	font-size: 13px;
	line-height: 1.6;
}

.ghestihub-guide-box__content ul {
	margin: 0;
	padding: 0 16px 0 0;
	list-style: disc;
	color: #166534;
	font-size: 12.5px;
	line-height: 1.8;
}

/* Fee & Discount Table */
.ghestihub-fee-table-wrap {
	overflow-x: auto;
	margin-top: 14px;
	border-radius: 12px;
	border: 1px solid #dbe7e4;
}

.ghestihub-fee-table {
	border: none !important;
	box-shadow: none !important;
	margin: 0 !important;
}

.ghestihub-fee-table th {
	background: #f7faf9 !important;
	color: #134e4a !important;
	font-weight: 700 !important;
	padding: 12px 10px !important;
	font-size: 12.5px;
	vertical-align: middle;
}

.ghestihub-fee-table td {
	padding: 12px 10px !important;
	vertical-align: middle;
}

.ghestihub-fee-row.is-hub-gateway td:first-child {
	border-inline-start: 3px solid #0f766e;
}

.ghestihub-fee-row.is-external-gateway td:first-child {
	border-inline-start: 3px solid #6366f1;
}

.ghestihub-badge-bnpl {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #e7f4f1;
	color: #0f766e;
	font-size: 10.5px;
	font-weight: 600;
	margin-top: 4px;
}

.ghestihub-badge-cash {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #ede9fe;
	color: #6366f1;
	font-size: 10.5px;
	font-weight: 600;
	margin-top: 4px;
}

/* Conditional Rules Section */
.ghestihub-conditional-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
	margin-top: 16px;
}

.ghestihub-checklist {
	max-height: 200px;
	overflow-y: auto;
	padding: 10px;
	background: #fbfdfc;
	border: 1px solid #dbe7e4;
	border-radius: 10px;
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ghestihub-checklist--horizontal {
	max-height: none;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 12px;
	background: #fff;
}

.ghestihub-checklist__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: #2c3e50;
	cursor: pointer;
}

@media (max-width: 782px) {
	.ghestihub-wrap {
		margin: 16px 12px 0 0;
	}

	.ghestihub-grid {
		grid-template-columns: 1fr;
	}

	.ghestihub-field-row {
		grid-template-columns: 1fr;
	}

	.ghestihub-header,
	.ghestihub-gateway,
	.ghestihub-dashboard__toolbar,
	.ghestihub-share-list__meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.ghestihub-kpi-grid {
		grid-template-columns: 1fr;
	}
}

.ghestihub-scope-mode {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 16px 0 12px;
}

.ghestihub-scope-mode label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #dbe7e4;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
}

.ghestihub-scope-mode label.is-selected {
	border-color: #0f766e;
	background: #f0fdfa;
	box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.18);
}

.ghestihub-scope-mode input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ghestihub-scope-mode strong {
	font-size: 13px;
	color: #134e4a;
}

.ghestihub-scope-mode span {
	font-size: 12px;
	color: #667874;
	line-height: 1.6;
}

.ghestihub-scope-hint {
	margin: 0 0 4px;
	padding: 8px 12px;
	border-radius: 8px;
	background: #f7fbfa;
	color: #4b635f;
	font-size: 12.5px;
}

.ghestihub-campaigns {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 16px 0;
}

.ghestihub-campaign {
	padding: 14px;
	border: 1px solid #dbe7e4;
	border-radius: 14px;
	background: #fbfdfc;
}

.ghestihub-campaign__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.ghestihub-campaign__title-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.ghestihub-campaign__title-wrap input[type="text"] {
	width: 100%;
	max-width: 360px;
	margin: 0;
}

.ghestihub-campaign__badge {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: #dcfce7;
	color: #166534;
	font-size: 11px;
	font-weight: 700;
}

.ghestihub-campaign__head-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ghestihub-campaign__enable {
	margin: 0 !important;
	padding: 4px 0 !important;
	background: transparent !important;
	border: 0 !important;
}

.ghestihub-campaign__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 12px;
}

.ghestihub-campaign__grid input[type="date"],
.ghestihub-campaign__grid input[type="number"],
.ghestihub-campaign__grid select {
	width: 100%;
	max-width: 100%;
}

.ghestihub-campaign .ghestihub-toggle-row {
	margin-bottom: 12px;
}

.ghestihub-sim-products {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.ghestihub-sim-products span {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: #e7f4f1;
	color: #134e4a;
	font-size: 12px;
	font-weight: 600;
}

@media (max-width: 782px) {
	.ghestihub-scope-mode {
		grid-template-columns: 1fr;
	}

	.ghestihub-campaign__head,
	.ghestihub-campaign__head-actions {
		flex-direction: column;
		align-items: stretch;
	}
}

.ghestihub-paylinks__modes {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
}

.ghestihub-paylinks__modes label,
.ghestihub-paylinks__share {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.ghestihub-paylinks__share input,
.ghestihub-assistant select.regular-text,
.ghestihub-assistant input.regular-text {
	max-width: 100%;
}

.ghestihub-paylinks__table {
	width: 100%;
	margin-top: 12px;
}

.ghestihub-assistant__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ghestihub-assistant__head h2 {
	margin: 0;
}

.ghestihub-assistant__prompts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0;
}

.ghestihub-assistant__log {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 48px;
	max-height: 280px;
	overflow: auto;
	margin-bottom: 12px;
}

.ghestihub-assistant__bubble {
	max-width: min(520px, 100%);
	padding: 10px 12px;
	border-radius: 12px;
	white-space: pre-wrap;
	line-height: 1.7;
}

.ghestihub-assistant__bubble.is-user {
	align-self: flex-start;
	background: #f4f6f8;
}

.ghestihub-assistant__bubble.is-assistant {
	align-self: flex-end;
	background: #eef6ff;
}

.ghestihub-assistant__composer {
	display: flex;
	gap: 8px;
	align-items: flex-end;
}

.ghestihub-assistant__composer textarea {
	flex: 1;
	min-height: 72px;
}
