.waum-customer-portal,
.waum-customer-portal * {
    box-sizing: border-box;
}

.waum-customer-portal {
    --waum-ink: #183247;
    --waum-muted: #526676;
    --waum-accent: #087c70;
    --waum-accent-hover: #06675e;
    --waum-border: #dce7e4;
    --waum-soft: #f2f7f5;
    max-width: 880px;
    margin: 48px auto;
    padding: 40px;
    border: 1px solid var(--waum-border);
    border-top: 4px solid var(--waum-accent);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(24, 50, 71, 0.09);
    color: var(--waum-ink);
    font-family: inherit;
}

.waum-customer-portal h2,
.waum-customer-portal h3 {
    color: var(--waum-ink);
    font-family: inherit;
    letter-spacing: 0;
}

.waum-customer-portal h2 {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
}

.waum-customer-portal h3 {
    margin: 32px 0 16px;
    font-size: 21px;
    font-weight: 650;
    line-height: 1.3;
}

.waum-portal-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--waum-border);
}

.waum-portal-email {
    display: inline-flex;
    max-width: 100%;
    margin: 4px 0 0;
    padding: 7px 11px;
    overflow-wrap: anywhere;
    border: 1px solid var(--waum-border);
    border-radius: 999px;
    background: var(--waum-soft);
    color: var(--waum-muted);
    font-size: 14px;
    line-height: 1.3;
}

.waum-customer-portal .button,
.waum-customer-portal button.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid var(--waum-accent);
    border-radius: 5px;
    background: var(--waum-accent);
    box-shadow: none;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.waum-customer-portal .button:hover,
.waum-customer-portal button.button:hover {
    transform: translateY(-1px);
    border-color: var(--waum-accent-hover);
    background: var(--waum-accent-hover);
    color: #fff;
}

.waum-customer-portal .button:focus-visible,
.waum-customer-portal button.button:focus-visible,
.waum-customer-portal input:focus-visible {
    outline: 3px solid rgba(8, 124, 112, 0.28);
    outline-offset: 3px;
}

.waum-customer-portal .waum-portal-logout {
    flex: 0 0 auto;
    border-color: var(--waum-border);
    background: #fff;
    color: var(--waum-ink);
}

.waum-customer-portal .waum-portal-logout:hover {
    border-color: var(--waum-ink);
    background: var(--waum-ink);
    color: #fff;
}

.waum-customer-portal ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.waum-subscription-list {
    display: grid;
    gap: 18px;
}

.waum-subscription-list > li.waum-subscription-item {
    padding: 22px;
    border: 1px solid var(--waum-border);
    border-radius: 8px;
    background: #fff;
    color: var(--waum-ink);
    font-size: 15px;
    line-height: 1.5;
}

.waum-subscription-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--waum-border);
}

.waum-subscription-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.waum-subscription-lines {
    margin: 0;
}

.waum-subscription-lines li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--waum-border);
}

.waum-subscription-line-name {
    min-width: 0;
    font-weight: 600;
}

.waum-subscription-line-price {
    flex: 0 0 auto;
    color: var(--waum-muted);
    font-weight: 650;
    white-space: nowrap;
}

.waum-subscription-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.waum-subscription-actions form {
    margin: 0;
}

.waum-subscription-actions .button,
.waum-license-domain-details > summary.button {
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
    padding: 0 14px;
}

.waum-subscription-name {
    font-size: 18px;
    font-weight: 700;
}

.waum-subscription-status {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e9f5ef;
    color: #276548;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    text-transform: capitalize;
}

.waum-subscription-date {
    margin: 12px 0 0;
    color: var(--waum-muted);
    font-size: 14px;
}

.waum-subscription-license {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--waum-border);
    border-radius: 6px;
    background: var(--waum-soft);
}

.waum-license-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}

.waum-license-head .waum-subscription-date {
    margin: 2px 0 0;
}

.waum-subscription-license .waum-license-domains li {
    background: #fff;
}

.waum-invoice-list {
    display: grid;
    gap: 10px;
}

.waum-invoice-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 14px 18px;
    border: 1px solid var(--waum-border);
    border-radius: 8px;
    background: #fff;
}

.waum-invoice-meta {
    display: grid;
    flex: 1 1 160px;
    gap: 2px;
}

.waum-invoice-meta span {
    color: var(--waum-muted);
    font-size: 14px;
}

.waum-invoice-amount {
    font-weight: 700;
    white-space: nowrap;
}

.waum-invoice-list .button {
    height: 40px;
    min-height: 40px;
    padding: 0 14px;
}

.waum-license-plugin {
    display: block;
    margin-bottom: 6px;
    color: var(--waum-ink);
    font-size: 14px;
}

.waum-license-domains li,
.waum-license-add-domain > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.waum-license-domain-details {
    position: relative;
    flex: 0 0 auto;
}

.waum-license-domain-details > summary {
    cursor: pointer;
    list-style: none;
}

.waum-license-domain-details > summary::-webkit-details-marker {
    display: none;
}

.waum-license-key {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 0 4px;
    color: var(--waum-muted);
}

.waum-license-key-prompt {
    margin: 8px 0 0;
    color: var(--waum-muted);
    font-size: 14px;
}

.waum-license-key code {
    padding: 5px 8px;
    border: 1px solid var(--waum-border);
    border-radius: 4px;
    background: var(--waum-soft);
    color: var(--waum-ink);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.waum-customer-portal .waum-license-copy {
    box-sizing: border-box;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px !important;
    padding: 6px !important;
    border-color: var(--waum-border);
    background: #fff;
    color: var(--waum-muted);
}

.waum-license-copy .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
}

.waum-customer-portal .waum-license-copy:hover {
    border-color: var(--waum-accent);
    background: var(--waum-soft);
    color: var(--waum-accent);
}

.waum-license-copy-status {
    color: var(--waum-accent);
    font-size: 12px;
}

.waum-license-domains {
    display: grid;
    gap: 6px;
    margin: 12px 0 18px !important;
    padding: 0 !important;
    list-style: none !important;
}

.waum-license-domains li {
    min-height: 42px;
    padding: 5px 10px;
    border: 1px solid var(--waum-border);
    border-radius: 5px;
    background: var(--waum-soft);
}

.waum-license-remove {
    width: 34px;
    min-width: 34px;
    min-height: 34px !important;
    justify-content: center;
    padding: 6px !important;
    border-color: var(--waum-border) !important;
    background: #fff !important;
    color: var(--waum-muted) !important;
}

.waum-license-remove .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
}

.waum-customer-portal .waum-license-remove:hover {
    border-color: #c75b58 !important;
    background: #fff1f0 !important;
    color: #9b3c39 !important;
}

.waum-license-add-domain {
    display: grid;
    justify-items: start;
    gap: 8px;
    margin-top: 16px;
}

.waum-license-domain-details[open] .waum-license-add-domain {
    position: absolute;
    z-index: 5;
    top: calc(100% + 8px);
    right: 0;
    width: min(350px, calc(100vw - 48px));
    margin: 0;
    padding: 14px;
    border: 1px solid var(--waum-border);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(24, 50, 71, 0.16);
}

.waum-license-add-domain > div {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.waum-license-add-domain input[type="text"] {
    flex: 1 1 180px;
    width: auto;
    min-width: 0;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #bfceca;
    border-radius: 5px;
    background: #fff;
    color: var(--waum-ink);
    font: inherit;
}

.waum-customer-portal--account > form {
    margin: 14px 0 0;
}

.waum-customer-portal--account > p:not(.waum-portal-email) {
    color: var(--waum-muted);
    line-height: 1.6;
}

.waum-customer-portal--account form:has(input[type="checkbox"]) p {
    margin: 0;
    padding: 13px 0;
    border-bottom: 1px solid var(--waum-border);
}

.waum-customer-portal--account form:has(input[type="checkbox"]) p:first-of-type {
    border-top: 1px solid var(--waum-border);
}

.waum-customer-portal label {
    color: var(--waum-ink);
    font-size: 15px;
    line-height: 1.5;
}

.waum-customer-portal input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 9px 0 0;
    accent-color: var(--waum-accent);
    vertical-align: -3px;
}

.waum-customer-portal--login {
    max-width: 620px;
    padding: 44px;
}

.waum-portal-intro {
    max-width: 440px;
    margin: 0 0 28px;
    color: var(--waum-muted);
    font-size: 16px;
    line-height: 1.6;
}

.waum-portal-login-form {
    display: grid;
    justify-items: start;
    gap: 12px;
}

.waum-portal-login-form label {
    font-weight: 600;
}

.waum-portal-login-form input[type="email"] {
    width: min(100%, 460px);
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #bfceca;
    border-radius: 5px;
    background: #fff;
    color: var(--waum-ink);
    font: inherit;
    font-size: 16px;
}

.waum-portal-login-form input[type="email"]::placeholder {
    color: #82918e;
}

.waum-portal-notice {
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid #b8dacf;
    border-left: 4px solid var(--waum-accent);
    border-radius: 5px;
    background: #f0f8f4;
    color: #244f43;
}

.waum-portal-notice p {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .waum-customer-portal {
        margin: 24px 12px;
        padding: 26px 20px;
    }

    .waum-portal-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .waum-subscription-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .waum-subscription-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .waum-license-add-domain > div {
        align-items: stretch;
        flex-direction: column;
    }

    .waum-license-add-domain input[type="text"] {
        width: 100%;
    }

    .waum-customer-portal h2 {
        font-size: 29px;
    }

    .waum-customer-portal h3 {
        font-size: 19px;
    }

    .waum-portal-login-form .button,
    .waum-customer-portal--account > form .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .waum-customer-portal .button,
    .waum-customer-portal button.button {
        transition: none;
    }
}