.esp-portal {

    margin: 20px 0;
    box-sizing: border-box;
}

.esp-portal h2,
.esp-portal h3 {
    margin-top: 0;
}

.esp-field {
    margin-bottom: 16px;
}

.esp-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: #222;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
	
}

#content > div > div > div > div > div > div > div > p:nth-child(3) > a{
	color: white !important;
}

.esp-button--primary {
    background: #222;
}

.esp-button--secondary {
    background: #555;
}

.esp-button--danger {
    background: #b00020;
}

.esp-signup-form input[type="text"],
.esp-signup-form input[type="email"],
.esp-signup-form select {
    width: 100%;
    max-width: 420px;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.esp-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
}

.esp-checkbox input[type="checkbox"] {
    margin-top: 4px;
}

.esp-actions {
    margin-top: 20px;
}

.esp-subscription-summary p {
    margin: 4px 0;
}

.esp-contract-history {
    margin-top: 24px;
}

.esp-contract-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.esp-contract-list__item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.esp-contract-list__version {
    font-weight: 600;
}

.esp-contract-list__link {
    margin-left: auto;
    text-decoration: none;
}

.esp-notice {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.esp-notice--warning {
    border: 1px solid #f2b600;
    background: #fff8e1;
}

.esp-contract-accept-form {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Responsive tweaks */
@media (max-width: 782px) {
    .esp-portal {
        padding: 16px;
    }

    .esp-contract-list__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .esp-contract-list__link {
        margin-left: 0;
    }

    .esp-button,
    .esp-actions .esp-button,
    .esp-cancel-form .esp-button {
        width: 100%;
        text-align: center;
    }

    .esp-contract-accept-form {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
}


.esp-invoices {
    margin-top: 24px;
}

.esp-invoice-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.esp-invoice-list__item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.esp-invoice-list__date {
    font-weight: 600;
}

.esp-invoice-list__link {
    margin-left: auto;
    text-decoration: none;
}

@media (max-width: 782px) {
    .esp-invoice-list__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .esp-invoice-list__link {
        margin-left: 0;
    }
}


/* ============================
   Ember Subscriptions Portal UI
   ============================ */

.esp-portal {
    max-width: 1040px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.esp-portal-shell {
    background: linear-gradient(145deg, #050816 0%, #020617 55%, #020817 100%);
    border-radius: 1.5rem;
    padding: 2px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.65);
	margin-top: 30px;
}

.esp-portal-shell--narrow {
    max-width: 560px;
    margin: 0 auto;
}

.esp-portal-shell > * {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.07) 0, transparent 55%),
                radial-gradient(circle at bottom right, rgba(45, 212, 191, 0.07) 0, transparent 55%),
                #020617;
    border-radius: 1.45rem;
}

/* Header */

.esp-portal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.75rem;
    padding: 2.25rem 2.25rem 1.75rem;
	margin-bottom: 125px;
}

.esp-portal-header-main {
    max-width: 560px;
}

.esp-portal-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.85);
    margin: 0 0 0.4rem;
}

.esp-portal-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: black;
    margin: 0 0 0.35rem;
}

.esp-portal-subtitle {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.95);
    margin: 0;
}

.esp-portal-header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    padding-top: 0.25rem;
}

.esp-portal-plan-label {
    font-size: 0.8rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #e5e7eb;
}

/* Status pill */

.esp-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.esp-status-pill--active {
    background: rgba(22, 163, 74, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.esp-status-pill--trial {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.esp-status-pill--pending {
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.5);
}

.esp-status-pill--inactive,
.esp-status-pill--default {
    background: rgba(148, 163, 184, 0.08);
    color: #cbd5f5;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

/* Grid & cards */

.esp-portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 1.5rem;
    padding: 0 2.25rem 2.25rem;
	margin-top: 70px;
}

.esp-portal-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.esp-portal-grid--stack {
    margin-top: -0.5rem;
}

.esp-card {
    position: relative;
    border-radius: 1.1rem;
    padding: 1.4rem 1.5rem 1.4rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(30, 64, 175, 0.35);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(14px);
}

.esp-card--primary {
    border-color: rgba(56, 189, 248, 0.45);
}

.esp-card--muted {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.86);
}

.esp-card-header {
    margin-bottom: 0.9rem;
}

.esp-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0 0 0.2rem;
}

.esp-card-subtitle {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.95);
    margin: 0;
}

.esp-card-body {
    font-size: 0.85rem;
}

/* Summary block */

.esp-summary-amount-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0.4rem 0 0.8rem;
}

.esp-summary-amount {
    font-size: 1.6rem;
    font-weight: 600;
    color: #e5e7eb;
}

.esp-summary-amount-meta {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.95);
}

.esp-summary-list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem 1rem;
}

.esp-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #cbd5f5;
}

.esp-summary-item dt {
    color: rgba(148, 163, 184, 0.9);
}

.esp-summary-item dd {
    margin: 0;
    text-align: right;
}

/* Alert */

.esp-alert {
    margin: 0 2.25rem 1.25rem;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(234, 179, 8, 0.4);
    background: rgba(234, 179, 8, 0.06);
}

.esp-alert--warning .esp-alert-title {
    color: #facc15;
}

.esp-alert-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.esp-alert-text {
    font-size: 0.8rem;
    color: #e5e7eb;
    margin: 0 0 0.6rem;
}

.esp-alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

/* Buttons & links */

.esp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 999px;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.55rem 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.12s ease-out, opacity 0.12s ease-out;
}


.esp-button--ghost {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

.esp-button--ghost:hover {
    background: rgba(148, 163, 184, 0.08);
}

.esp-button--danger {
    background: radial-gradient(circle at top left, #f97373, #ef4444);
    color: #fee2e2;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.45);
}

.esp-button--danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(239, 68, 68, 0.55);
}

.esp-button--full {
    width: 100%;
}

.esp-button--sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
	width: 100%;
	font-family: poppins;
}

.esp-link {
    font-size: 0.8rem;
    color: #7dd3fc;
    text-decoration: none;
}

.esp-contract-panel-text{
	font-family: poppins;
	color: white;
}

.esp-link:hover {
    text-decoration: underline;
}

/* Invoices */

.esp-invoice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.esp-invoice-list__item {
    padding: 0.65rem 0.3rem;
    border-bottom: 1px solid rgba(30, 64, 175, 0.45);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.esp-invoice-main {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #e5e7eb;
}

.esp-invoice-date {
    color: rgba(148, 163, 184, 0.95);
}

.esp-invoice-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    margin-top: 0.1rem;
}

.esp-invoice-status {
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #cbd5f5;
}

/* Contract list */

.esp-contract-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
    font-size: 0.83rem;
}

.esp-contract-list__item {
    padding: 0.55rem 0.3rem;
    border-bottom: 1px solid rgba(30, 64, 175, 0.45);
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.esp-contract-main {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.esp-contract-version {
    color: #e5e7eb;
}

.esp-contract-date {
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.78rem;
}

/* Misc text */

.esp-text-muted {
    color: rgba(148, 163, 184, 0.95);
}

.esp-text-error {
    color: #fecaca;
}

/* Checkbox styling */

.esp-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.95);
}

.esp-checkbox input[type="checkbox"] {
    margin-top: 0.1rem;
}

/* Responsive */

@media (max-width: 900px) {
    .esp-portal {
        margin-top: 2rem;
    }

    .esp-portal-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.7rem 1.5rem 1.4rem;
    }

    .esp-portal-grid,
    .esp-portal-grid--stack {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 1.5rem 1.6rem;
    }
}


#content > div > div > div > div > div > div > div > div > div:nth-child(2) > section.esp-card.esp-card--muted > div > form > button{
	color: white !important;
}

/* ============================
   Contract list item accordion
   ============================ */

.esp-contract-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
    font-size: 0.83rem;
}

.esp-contract-list__item {
    border-radius: 0.85rem;
    padding: 0.3rem;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08) 0, transparent 50%),
                radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.1) 0, transparent 55%),
                rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(30, 64, 175, 0.5);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.7);
}

.esp-contract-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    background: transparent;
    border: none;
    color: #e5e7eb;
    border-radius: 0.7rem;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease-out, transform 0.1s ease-out;
}

.esp-contract-item-header:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: translateY(-1px);
}

.esp-contract-main {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.esp-contract-version {
    font-weight: 500;
    color: #e5e7eb;
}

.esp-contract-date {
    color: rgba(148, 163, 184, 0.95);
    font-size: 0.78rem;
}

.esp-contract-chevron {
    font-size: 0.8rem;
    opacity: 0.75;
    transform: rotate(180deg); /* looks like a down arrow by default */
    transition: transform 0.18s ease-out, opacity 0.15s ease-out;
}

.esp-contract-list__item.is-open .esp-contract-chevron {
    transform: rotate(0deg);
    opacity: 1;
}

/* Panel */

.esp-contract-item-panel {
    margin: 0 0.5rem 0.45rem;
    padding: 0.6rem 0.75rem 0.5rem;
    border-top: 1px solid rgba(30, 64, 175, 0.7);
    font-size: 0.8rem;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.22s ease-out, opacity 0.18s ease-out;
}

.esp-contract-item-panel.is-open {
    max-height: 260px; /* enough for text + button */
    opacity: 1;
}

.esp-contract-panel-text {
    margin: 0 0 0.45rem;
}
.esp-contract-item-header{
	border: 0px !important;
	font-family: poppins;
	display: block !important;
	width: 100% !important;
}


.esp-contract-item-header:hover,
.esp-contract-item-header:focus,
.esp-contract-item-header:active {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}


/* ============================================
   GLOBAL FONT OVERRIDE — EMBER PORTAL (POPPINS)
   ============================================ */
.esp-portal,
.esp-portal * {
    font-family: "Poppins", sans-serif !important;
	color: #333;
}


/* ============================================================
   EMBER CUSTOMER PORTAL — LIGHT THEME (Just-Off-White)
   ============================================================ */

.esp-portal,
.esp-portal-shell > * {
    background: #ffffff !important; /* Just-off-white */
    border-radius: 1.2rem;
    box-shadow: none !important;
}

/* Portal wrapper */
.esp-portal-shell {
    background: #ffffff !important;
    padding: 1px;
    border-radius: 1.3rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Cards */
.esp-card {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

/* Muted cards */
.esp-card--muted {
    background: #fdfdfd !important;
    border-color: rgba(0,0,0,0.06) !important;
}

/* Portal header */
.esp-portal-header {
    background: #ffffff !important;
    border-bottom: 0px solid rgba(0,0,0,0.05) !important;
}

/* Text colours for light UI */
.esp-portal {
    color: #333 !important; /* clean readable dark grey */
}

/* Adjusted ghost button for white theme */
.esp-button--ghost {
    border-color: rgba(0,0,0,0.2) !important;
}

.esp-button--ghost:hover {
    background: rgba(0,0,0,0.05) !important;
}

/* Contract cards in light theme */
.esp-contract-list__item {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 3px 9px rgba(0,0,0,0.04) !important;
}

.esp-contract-item-header:hover {
    background: rgba(0,0,0,0.03) !important;
}

/* Contract panel */
.esp-contract-item-panel {
    border-top: 1px solid rgba(0,0,0,0.08) !important;
    background: #fafafa !important;
}

/* Status pills */
.esp-status-pill {
    border-color: rgba(0,0,0,0.15) !important;
}

.esp-status-pill--active {
    background: rgba(34,197,94,0.08) !important;
    color: #166534 !important;
    border-color: rgba(34,197,94,0.35) !important;
}

.esp-status-pill--trial {
    background: rgba(59,130,246,0.08) !important;
    color: #1d4ed8 !important;
    border-color: rgba(59,130,246,0.35) !important;
}

.esp-status-pill--pending {
    background: rgba(234,179,8,0.1) !important;
    color: #a16207 !important;
    border-color: rgba(234,179,8,0.35) !important;
}

/* Alerts */
.esp-alert {
    background: #fffbe8 !important;
    border-color: rgba(234,179,8,0.4) !important;
}


/* Steps indicator */
.esp-steps-indicator {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.esp-step-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #f3f4f6;
    font-size: 0.8rem;
    opacity: 0.6;
}

.esp-step-indicator--active {
    border-color: #111827;
    color: #ffffff;
    opacity: 1;
}

.esp-step-indicator__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Wizard panels */
.esp-step-panel {
    margin-top: 0.5rem;
}

.esp-step-title {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.esp-step-intro {
    margin: 0 0 0.8rem;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Contract scroll area */
.esp-contract-scroll-wrapper {
    border-radius: 0.75rem;
    border: 1px solid rgba(0,0,0,0.08);
    background: #f9fafb;
    max-height: 260px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.esp-contract-scroll {
    padding: 0.9rem 1rem;
    max-height: 260px;
    overflow-y: auto;
    font-size: 0.85rem;
}

.esp-contract-scroll-end {
    margin-top: 1rem;
    font-style: italic;
}

/* Step actions */
.esp-step-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

/* Disabled state for contract-next button */
.esp-button--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* Tiny helper text under step 2 */
.esp-scroll-hint {
    margin-top: 0.4rem;
    font-size: 0.8rem;
}

/* MOBILE — stack step indicators full width */
@media (max-width: 640px) {
    .esp-steps-indicator {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        width: 100%;
    }

    .esp-step-indicator {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        border-radius: 0.75rem;
        text-align: left;
    }
	
	.esp-step-panel--3{
		margin-top: 30px;
	}
	
	.esp-checkbox{
		    font-size: 14px;
    line-height: 25px;
    margin-top: 20px;
	}

    .esp-step-indicator__label {
        font-size: 0.9rem;
    }
}

