/* ============================================================
 * WC Order Suite — Order Tracker styles
 * ============================================================ */
/* =================================================================
   Custom Order Tracker — WoodMart-compatible · Premium Design
   Hooks into WoodMart CSS variables where available.
   ================================================================= */

/* ── Design tokens (WoodMart-aware) ──────────────────────────────
   We read WoodMart's own vars if they exist, otherwise fall back
   to our premium standalone palette.                              */
.cot-wrap {
    /* Accent — read WoodMart primary, fall back to deep charcoal-graphite */
    --cot-accent:         var(--wd-primary-color, #1a1a2e);
    --cot-accent-hover:   var(--wd-primary-color-hover, #16213e);

    /* Surfaces */
    --cot-bg:             #ffffff;
    --cot-bg-subtle:      #f8f8f6;
    --cot-bg-muted:       #f2f1ef;

    /* Borders */
    --cot-border:         #e8e6e1;
    --cot-border-strong:  #d4d0c8;

    /* Text */
    --cot-text:           #1c1917;
    --cot-text-secondary: #6b6560;
    --cot-text-muted:     #a09a93;

    /* Success (timeline done) */
    --cot-success:        #2d6a4f;
    --cot-success-light:  #d8f3dc;

    /* Danger */
    --cot-danger:         #9b2335;
    --cot-danger-light:   #fce8ec;

    /* Warning */
    --cot-warning:        #92400e;
    --cot-warning-light:  #fef3c7;

    /* Shadows */
    --cot-shadow-sm:      0 1px 3px 0 rgba(0,0,0,.06), 0 1px 2px -1px rgba(0,0,0,.04);
    --cot-shadow-md:      0 4px 12px 0 rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.05);
    --cot-shadow-lg:      0 10px 30px -4px rgba(0,0,0,.10), 0 4px 8px -4px rgba(0,0,0,.06);

    /* Radius */
    --cot-radius:         12px;
    --cot-radius-sm:      8px;
    --cot-radius-xs:      5px;

    /* Spacing */
    --cot-gap:            28px;
}

/* ── Box model ─────────────────────────────────────────────────── */
.cot-wrap,
.cot-wrap * {
    box-sizing: border-box;
}

/* ── Wrapper ───────────────────────────────────────────────────── */
.cot-wrap {
    max-width: 820px;
    margin: 32px auto;
    font-family: inherit;
    color: var(--cot-text);
}

/* =================================================================
   CARD — shared
   ================================================================= */
.cot-card {
    background: var(--cot-bg);
    border: 1px solid var(--cot-border);
    border-radius: var(--cot-radius);
    box-shadow: var(--cot-shadow-md);
    overflow: hidden;
}

.cot-card + .cot-card {
    margin-top: 20px;
}

/* =================================================================
   SEARCH / FORM CARD
   ================================================================= */
.cot-card--search {
    padding: var(--cot-gap);
}

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

.cot-subtitle {
    margin: 0 0 22px;
    font-size: 0.875rem;
    color: var(--cot-text-secondary);
}

/* ── Form fields ──────────────────────────────────────────────── */
.cot-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cot-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--cot-text);
    text-transform: uppercase;
}

.cot-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--cot-border-strong);
    border-radius: var(--cot-radius-sm);
    background: var(--cot-bg-subtle);
    font: inherit;
    font-size: 0.9375rem;
    color: var(--cot-text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cot-field input::placeholder {
    color: var(--cot-text-muted);
}

.cot-field input:hover {
    border-color: #b8b3ab;
    background: var(--cot-bg);
}

.cot-field input:focus {
    outline: none;
    border-color: var(--cot-accent);
    background: var(--cot-bg);
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.08);
}

/* ── Submit button ────────────────────────────────────────────── */
.cot-form-footer {
    margin-top: 18px;
}

.cot-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 0;
    border-radius: var(--cot-radius-sm);
    background: var(--cot-accent);
    color: #fff;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
    box-shadow: 0 2px 8px rgba(26,26,46,.18);
}

.cot-btn:hover {
    background: var(--cot-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26,26,46,.22);
}

.cot-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(26,26,46,.16);
}

.cot-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cot-btn.loading .cot-btn-text { display: none; }
.cot-btn.loading .cot-spinner  { display: block; }

.cot-spinner {
    display: none;
    width: 17px;
    height: 17px;
    animation: cot-spin 0.7s linear infinite;
}

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

/* ── Error ────────────────────────────────────────────────────── */
.cot-error {
    margin-top: 14px;
    padding: 12px 16px;
    background: var(--cot-danger-light);
    border: 1px solid #f5c6cf;
    border-left: 3px solid var(--cot-danger);
    border-radius: var(--cot-radius-xs);
    color: var(--cot-danger);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* =================================================================
   RESULT CARD
   ================================================================= */
.cot-card--result {
    padding: 0;
}

/* ── Card header band ─────────────────────────────────────────── */
.cot-result-header {
    padding: 22px var(--cot-gap);
    background: var(--cot-bg-subtle);
    border-bottom: 1px solid var(--cot-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.cot-order-id {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--cot-text);
    line-height: 1.3;
}

.cot-order-id span {
    color: var(--cot-text-secondary);
    font-weight: 500;
}

/* ── Status badge ─────────────────────────────────────────────── */
.cot-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1.5px solid transparent;
}

.cot-badge--processing,
.cot-badge--pending,
.cot-badge--shipped {
    background: #eef0ff;
    color: #3730a3;
    border-color: #c7d2fe;
}

.cot-badge--on-hold {
    background: var(--cot-warning-light);
    color: var(--cot-warning);
    border-color: #fde68a;
}

.cot-badge--completed {
    background: var(--cot-success-light);
    color: var(--cot-success);
    border-color: #b7e4c7;
}

.cot-badge--cancelled,
.cot-badge--refunded {
    background: var(--cot-danger-light);
    color: var(--cot-danger);
    border-color: #f5c6cf;
}

/* ── Meta row (date / estimated) ──────────────────────────────── */
.cot-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    padding: 14px var(--cot-gap);
    border-bottom: 1px solid var(--cot-border);
    font-size: 0.875rem;
    color: var(--cot-text-secondary);
}

.cot-meta-row strong {
    color: var(--cot-text);
    font-weight: 600;
}

/* =================================================================
   TIMELINE
   ================================================================= */
.cot-timeline-wrap {
    padding: 28px var(--cot-gap);
    border-bottom: 1px solid var(--cot-border);
}

.cot-timeline-label {
    margin: 0 0 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cot-text-muted);
}

.cot-timeline {
    display: flex;
    align-items: flex-start;
    position: relative;
}

/* Connector track behind all steps */
.cot-timeline::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 13px;
    right: 13px;
    height: 2px;
    background: var(--cot-border-strong);
    z-index: 0;
}

/* Green fill — set via inline style width from JS, OR use done overlay */
.cot-timeline-track {
    position: absolute;
    top: 13px;
    left: 13px;
    height: 2px;
    background: var(--cot-success);
    z-index: 1;
    transition: width 0.6s ease;
    border-radius: 2px;
}

/* ── Each step ──────────────────────────────────────────────────── */
.cot-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 6px;
}

/* Dot */
.cot-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--cot-border-strong);
    background: var(--cot-bg);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    z-index: 2;
}

/* Done — filled with success colour + check mark */
.cot-step-dot--done {
    border-color: var(--cot-success);
    background: var(--cot-success);
    box-shadow: 0 0 0 4px rgba(45,106,79,.12);
}

.cot-step-dot--done::after {
    content: "";
    display: block;
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

/* Active — accent ring */
.cot-step-dot--active {
    border-color: var(--cot-accent);
    background: var(--cot-accent);
    box-shadow: 0 0 0 4px rgba(26,26,46,.10);
}

.cot-step-dot--active::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

/* Pending — empty */
.cot-step-dot--pending {
    border-color: var(--cot-border-strong);
    background: var(--cot-bg-muted);
}

/* Labels */
.cot-step-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cot-text);
    line-height: 1.3;
    letter-spacing: 0.005em;
}

.cot-step-title--muted {
    color: var(--cot-text-muted);
    font-weight: 500;
}

.cot-step-meta {
    margin-top: 4px;
    font-size: 0.7rem;
    color: var(--cot-text-muted);
    line-height: 1.3;
}

/* =================================================================
   ORDER ITEMS
   ================================================================= */
.cot-section {
    padding: 22px var(--cot-gap);
    border-bottom: 1px solid var(--cot-border);
}

.cot-section:last-child {
    border-bottom: none;
}

.cot-section-title {
    margin: 0 0 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cot-text-muted);
}

.cot-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cot-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: var(--cot-bg-subtle);
    border: 1px solid var(--cot-border);
    border-radius: var(--cot-radius-sm);
    transition: border-color 0.15s;
}

.cot-item:hover {
    border-color: var(--cot-border-strong);
}

.cot-item-img,
.cot-item-img-placeholder {
    width: 60px;
    height: 60px;
    border-radius: var(--cot-radius-xs);
    object-fit: cover;
    background: var(--cot-bg-muted);
    border: 1px solid var(--cot-border);
    flex-shrink: 0;
}

.cot-item-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cot-text-muted);
    font-size: 1.375rem;
}

.cot-item-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cot-text);
    margin-bottom: 3px;
    line-height: 1.35;
}

.cot-item-meta {
    font-size: 0.8125rem;
    color: var(--cot-text-secondary);
}

.cot-item-right {
    text-align: right;
}

.cot-item-price {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--cot-text);
}

.cot-item-qty {
    font-size: 0.8125rem;
    color: var(--cot-text-muted);
    margin-top: 2px;
}

/* =================================================================
   PAYMENT / DELIVERY / SUMMARY
   ================================================================= */
.cot-dual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.cot-dual-grid .cot-block:first-child {
    border-right: 1px solid var(--cot-border);
}

.cot-block {
    padding: 22px var(--cot-gap);
}

.cot-block-title {
    margin: 0 0 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cot-text-muted);
}

.cot-block p {
    margin: 0 0 5px;
    font-size: 0.9rem;
    color: var(--cot-text-secondary);
    white-space: pre-line;
    line-height: 1.6;
}

.cot-block p:last-child { margin-bottom: 0; }

/* ── Order summary ────────────────────────────────────────────── */
.cot-summary-block {
    padding: 22px var(--cot-gap);
    background: var(--cot-bg-subtle);
    border-top: 1px solid var(--cot-border);
}

.cot-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--cot-text-secondary);
    margin-bottom: 9px;
    line-height: 1.4;
}

.cot-summary-row:last-child { margin-bottom: 0; }

.cot-summary-row--total {
    border-top: 1px solid var(--cot-border-strong);
    padding-top: 12px;
    margin-top: 4px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--cot-text);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 680px) {
    .cot-wrap { --cot-gap: 18px; }

    .cot-field-row { grid-template-columns: 1fr; }

    /* ── Result header ─── */
    .cot-result-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* ── Timeline → vertical ─── */
    .cot-timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .cot-timeline::before {
        top: 14px;
        left: 13px;
        bottom: 14px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .cot-timeline-track {
        display: none; /* simpler on mobile */
    }

    .cot-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 0;
        padding-bottom: 20px;
        width: 100%;
        gap: 14px;
    }

    .cot-step:last-child { padding-bottom: 0; }

    .cot-step-dot { margin-bottom: 0; flex-shrink: 0; }

    .cot-step-body { display: flex; flex-direction: column; padding-top: 5px; }

    /* ── Dual grid → stack ─── */
    .cot-dual-grid {
        grid-template-columns: 1fr;
    }

    .cot-dual-grid .cot-block:first-child {
        border-right: none;
        border-bottom: 1px solid var(--cot-border);
    }

    /* ── Items ─── */
    .cot-item { grid-template-columns: 52px 1fr; }
    .cot-item-right { grid-column: 2; text-align: left; }
}

@media (max-width: 420px) {
    .cot-title { font-size: 1.25rem; }
    .cot-order-id { font-size: 1rem; }
}


/* ============================================================
 * WC Order Suite — Shiprocket EDD Checker frontend widget styles
 * ============================================================ */
/* =====================================================================
   Shiprocket EDD Checker – Front-end widget styles
   ===================================================================== */

/* ---------- Widget wrapper ---------- */
.srpe-widget {
	margin: 16px 0;
	padding: 16px 18px;
	background: #f7f9fc;
	border: 1px solid #e1e8ef;
	border-radius: 10px;
	font-family: inherit;
	box-sizing: border-box;
}

/* ---------- Label row ---------- */
.srpe-widget__label {
	margin: 0 0 10px;
	font-weight: 600;
	font-size: 14px;
	color: #1a1a2e;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.srpe-widget__label-text {
	flex: 0 0 auto;
}

/* ---------- "Pincode: XXXXXX [Change]" display ---------- */
.srpe-widget__display-pincode {
	display: none;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 400;
	color: #444;
}

.srpe-widget__change-btn {
	font-size: 12px;
	color: #e95d27;
	text-decoration: underline;
	white-space: nowrap;
}

.srpe-widget__change-btn:hover {
	color: #c94c1b;
}

/* ---------- Input row ---------- */
.srpe-widget__row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

/* ---------- Input ---------- */
.srpe-widget__input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	padding: 10px 13px;
	border: 1.5px solid #c9d4df;
	border-radius: 7px;
	font-size: 15px;
	color: #333;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}

.srpe-widget__input:focus {
	border-color: #e95d27;
	box-shadow: 0 0 0 3px rgba(233, 93, 39, 0.15);
}

/* ---------- Button ---------- */
.srpe-widget__btn {
	flex: 0 0 auto;
	padding: 10px 20px;
	background: #e95d27;
	color: #fff;
	border: none;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease, transform 0.1s ease;
	-webkit-appearance: none;
	appearance: none;
	touch-action: manipulation;
}

.srpe-widget__btn:hover {
	background: #c94c1b;
}

.srpe-widget__btn:active {
	transform: scale(0.97);
}

.srpe-widget__btn:disabled {
	background: #b8c4cc;
	cursor: not-allowed;
	transform: none;
}

/* ---------- Location status line ---------- */
.srpe-widget__loc-status {
	display: none;
	margin-top: 8px;
	font-size: 12px;
	color: #666;
	font-style: italic;
}

/* ---------- Message ---------- */
.srpe-widget__msg {
	display: none;
	margin-top: 10px;
	padding: 10px 13px;
	border-radius: 7px;
	font-size: 13px;
	line-height: 1.55;
}

.srpe-widget__msg--success {
	background: #edfbf0;
	border: 1px solid #6fcf87;
	color: #155724;
}

.srpe-widget__msg--error {
	background: #fff3f3;
	border: 1px solid #fca5a5;
	color: #b91c1c;
}

.srpe-widget__msg--info {
	background: #eef4ff;
	border: 1px solid #93c5fd;
	color: #1e40af;
}

/* ---------- Mobile – phones ≤ 480 px ---------- */
@media (max-width: 480px) {
	.srpe-widget {
		padding: 14px 14px;
		border-radius: 8px;
	}

	.srpe-widget__row {
		flex-direction: column;
		gap: 8px;
	}

	.srpe-widget__input {
		width: 100%;
		font-size: 16px; /* prevents iOS zoom on focus */
		padding: 12px 13px;
	}

	.srpe-widget__btn {
		width: 100%;
		padding: 12px;
		font-size: 15px;
		border-radius: 7px;
	}

	.srpe-widget__label {
		font-size: 13px;
	}

	.srpe-widget__msg {
		font-size: 12.5px;
	}
}


/* ============================================================
 * WC Order Suite — Unified admin settings page
 * One shared design system for every module's settings tab
 * (Order Tracker, Shiprocket EDD, Payment Fees).
 * ============================================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Page wrap ---------- */
.wos-settings-wrap {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	max-width: 1200px;
	color: #1a1a2e;
}

/* ---------- Header ---------- */
.wos-settings-header {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #0f172a; /* Shadcn primary dark */
	border-radius: 10px;
	padding: 24px 28px;
	margin-bottom: 28px;
	color: #f8fafc;
}

.wos-settings-header__logo {
	background: rgba(255,255,255,0.2);
	border-radius: 10px;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wos-settings-header__logo svg {
	width: 32px;
	height: 32px;
	stroke: #fff;
}

.wos-settings-header__text h1 {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
	color: #fff !important;
	text-shadow: none;
}

.wos-settings-header__text p {
	margin: 0;
	font-size: 13px;
	opacity: 0.9;
	color: #fff;
}

/* ---------- Tab navigation ---------- */
.wos-settings-tabs {
	display: flex;
	gap: 4px;
	margin: 0 0 24px;
	border-bottom: 1px solid #e2e8f0;
}

.wos-settings-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 11px 18px;
	font-size: 13.5px;
	font-weight: 600;
	color: #64748b;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.wos-settings-tab:hover {
	color: #0f172a;
}

.wos-settings-tab.is-active {
	color: #0f172a;
	border-bottom-color: #0f172a;
}

.wos-settings-tab__icon {
	font-size: 15px;
}

/* ---------- Two-column layout ---------- */
.wos-settings-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 24px;
	align-items: start;
}

@media ( max-width: 900px ) {
	.wos-settings-layout {
		grid-template-columns: 1fr;
	}
}

/* ---------- Cards ---------- */
.wos-settings-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 24px 28px;
	margin-bottom: 0;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.wos-settings-sidebar .wos-settings-card {
	padding: 20px;
	margin-bottom: 16px;
}

.wos-settings-card--info {
	border-left: 4px solid #0f172a;
}

.wos-settings-card--help {
	border-left: 4px solid #3b82f6;
}

.wos-settings-card--version {
	background: #f7f9fc;
	font-size: 13px;
}

.wos-settings-card--version p {
	margin: 0 0 6px;
	color: #555;
}

.wos-settings-card--version p:last-child {
	margin-bottom: 0;
}

/* ---------- Sidebar headings ---------- */
.wos-settings-sidebar .wos-settings-card h3 {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 700;
	color: #1a1a2e;
}

.wos-settings-sidebar .wos-settings-card p {
	font-size: 13px;
	color: #555;
	margin: 0 0 10px;
}

.wos-settings-sidebar .wos-settings-card ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wos-settings-sidebar .wos-settings-card ul li {
	margin-bottom: 8px;
}

.wos-settings-sidebar .wos-settings-card ul li:last-child {
	margin-bottom: 0;
}

.wos-settings-sidebar .wos-settings-card ul li a {
	font-size: 13px;
	color: #3b82f6;
	text-decoration: none;
}

.wos-settings-sidebar .wos-settings-card ul li a:hover {
	text-decoration: underline;
}

/* ---------- Shortcode box ---------- */
.wos-settings-shortcode-box {
	background: #f0f4f8;
	border: 1px solid #d4dde8;
	border-radius: 6px;
	padding: 8px 12px;
	margin-bottom: 10px;
}

.wos-settings-shortcode-box code {
	font-size: 13px;
	font-family: 'Courier New', monospace;
	color: #c0392b;
	background: transparent;
	border: none;
	padding: 0;
	box-shadow: none;
}

.wos-settings-note {
	font-size: 11px !important;
	color: #888 !important;
}

/* ---------- Section ---------- */
.wos-settings-section {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid #f0f0f0;
}

.wos-settings-section:last-of-type {
	border-bottom: none;
	margin-bottom: 16px;
	padding-bottom: 0;
}

.wos-settings-section__title {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.wos-settings-section__icon {
	font-size: 16px;
}

/* ---------- Fields ---------- */
.wos-settings-section__fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wos-settings-field {
	display: grid;
	grid-template-columns: 220px 1fr;
	align-items: start;
	gap: 8px 16px;
}

.wos-settings-field--toggle {
	grid-template-columns: 220px auto;
}

.wos-settings-field__label {
	font-size: 13.5px;
	font-weight: 600;
	color: #374151;
	padding-top: 9px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.wos-settings-field__desc {
	grid-column: 2 / 3;
	font-size: 12px;
	color: #6b7280;
	margin: 2px 0 0;
	line-height: 1.5;
}

.wos-settings-field__desc--full {
	grid-column: 1 / -1;
	padding-left: 236px;
}

/* ---------- Inputs ---------- */
.wos-settings-input {
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	color: #111;
	background: #fff;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	outline: none;
	font-family: inherit;
	width: 100%;
	box-sizing: border-box;
}
.wos-settings-input:focus {
	border-color: #0f172a;
	box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

.wos-settings-input--wide   { max-width: 520px; }
.wos-settings-input--medium { max-width: 280px; }
.wos-settings-input--small  { max-width: 120px; }

/* ---------- Toggle switch ---------- */
.wos-settings-toggle {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	margin-top: 7px;
}

.wos-settings-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.wos-settings-toggle__slider {
	position: absolute;
	inset: 0;
	background: #d1d5db;
	border-radius: 24px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.wos-settings-toggle__slider::before {
	content: '';
	position: absolute;
	left: 3px;
	top: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s ease;
	box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.wos-settings-toggle input:checked + .wos-settings-toggle__slider {
	background: #0f172a;
}

.wos-settings-toggle input:checked + .wos-settings-toggle__slider::before {
	transform: translateX(20px);
}

/* ---------- Badge ---------- */
.wos-settings-badge {
	display: inline-block;
	padding: 2px 7px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 500;
	color: #6b7280;
}

.wos-settings-badge--required {
	background: #fef2f2;
	border-color: #fca5a5;
	color: #b91c1c;
}

/* ---------- Form footer ---------- */
.wos-settings-form-footer {
	padding-top: 20px;
	border-top: 1px solid #f0f0f0;
}

.wos-settings-btn-save.button-primary {
	background: #0f172a !important;
	border-color: #0f172a !important;
	color: #f8fafc !important;
	font-size: 14px !important;
	padding: 8px 24px !important;
	height: auto !important;
	border-radius: 6px !important;
	font-weight: 500 !important;
	font-family: inherit !important;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.wos-settings-btn-save.button-primary:hover {
	opacity: 0.9 !important;
	background: #0f172a !important;
}

/* ---------- Responsive fields ---------- */
@media ( max-width: 700px ) {
	.wos-settings-field,
	.wos-settings-field--toggle {
		grid-template-columns: 1fr;
	}
	.wos-settings-field__desc--full {
		padding-left: 0;
	}
	.wos-settings-field__desc {
		grid-column: 1 / -1;
	}
}

/* ---------- Payment Fees: per-gateway rows ---------- */
.wos-settings-gateway-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wos-settings-gateway-row {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px 18px;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.wos-settings-gateway-row.is-enabled {
	border-color: #cbd5e1;
	background: #f8fafc;
}

.wos-settings-gateway-row__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.wos-settings-gateway-row__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a2e;
}

.wos-settings-gateway-row__warning {
	font-size: 12px;
	color: #b91c1c;
	margin-top: 4px;
}

.wos-settings-gateway-row__fields {
	display: none;
	grid-template-columns: 160px 140px 1fr;
	gap: 14px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #e5e7eb;
}

.wos-settings-gateway-row.is-enabled .wos-settings-gateway-row__fields,
.wos-settings-gateway-row:has( input[type="checkbox"]:checked ) .wos-settings-gateway-row__fields {
	display: grid;
}

.wos-settings-gateway-row__fields label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #6b7280;
	margin-bottom: 6px;
}

@media ( max-width: 700px ) {
	.wos-settings-gateway-row__fields {
		grid-template-columns: 1fr;
	}
}
