/* DianalundMembers – panel and signup styles */

/* ── Style select-form arrow with Customizable select element ──────────────── */
select,
::picker(select) {
  appearance: base-select;
}

/* ── Membership signup flow (frontend) ─────────────────────────────── */
.dm-signup-flow {
    margin: 1.5em 0;
}

.dm-signup-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
}

.dm-membership-options {
    display: grid;
    margin: 0 auto;
    gap: 1.1rem;
    width: 60%;
}

.dm-membership-option button {
    font-family: inherit;
    width: 100%;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    font-weight: 400;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: 0;
    border-radius: 4px;
    margin-block: .5rem;
    transform: scale(1);
    transition: transform .2s ease-in-out;
}

.dm-membership-option button:hover {
    cursor: pointer;
    transform: scale(1.01);
    
}

.dm-signup-form {
    display: grid;
    gap: .9rem;
}

/* ── Auth notice ────────────────────────────────────────────────────── */
.dm-auth-notice {
    border-radius: 6px;
    padding: .75rem 1rem;
    margin-bottom: .75rem;
    font-size: .93em;
}

.dm-auth-notice--logged-in {
    background: #f0fff4;
    border: 1px solid #86efac;
    color: #166534;
    display: flex;
    column-gap: 1rem;
}

.dm-auth-notice svg {
    width: 2rem;
    flex-shrink: 0;
}

.dm-auth-notice p {
    line-height: inherit;
    margin-block: 0;
}

.dm-auth-notice--prefill {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.dm-auth-notice--guest {
    background: #fafafa;
    border: 1px solid #dcdcde;
    padding: .9rem 1rem;
}

.dm-auth-notice--guest p {
    margin: .4rem 0;
}

.dm-auth-notice__heading {
    font-weight: 600;
    margin-bottom: .5rem !important;
}

.dm-auth-notice__separator {
    color: #666;
    font-style: italic;
}

/* ── Form table (oplysninger) ───────────────────────────────────────── */
.dm-form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: .5rem;
}

.dm-form-table th,
.dm-form-table td {
    padding: .45rem .5rem .45rem 0;
    vertical-align: middle;
    text-align: left;
}

.dm-form-table th {
    width: 160px;
    font-weight: 600;
    white-space: nowrap;
    padding-right: 1rem;
    color: #333;
}

.dm-form-table td input[type="text"],
.dm-form-table td input[type="email"],
.dm-form-table td input[type="tel"],
.dm-form-table td input[type="password"] {
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
    margin: 0;
}

.dm-form-table td input[readonly] {
    background: #f6f6f6;
    color: #555;
    cursor: default;
}

.dm-field-hint {
    display: block;
    margin-top: .25rem;
    font-size: .82em;
    color: #666;
}

.dm-submit button {
    background-color: var(--primary-color);
    color: white;
    font-family: inherit;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
}

.dm-submit button:hover {
    cursor: pointer;
}

.dm-submit {
    display: flex;
    justify-content: center;
}

/* ── Gateway options (WooCommerce payment-method markup) ───────────── */
.dm-existing-membership,
.dm-renewal-options,
.dm-payment-options {
    display: grid;
    gap: .45rem;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: .8rem;
    text-align: left;
    text-transform: none;
}

.dm-existing-membership {
    background: #fff7ed;
    border-color: #fdba74;
}

.dm-existing-membership p {
    margin: 0;
    text-transform: none;
}

.dm-existing-membership label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .35rem .55rem;
    align-items: start;
    font-weight: 400;
    text-transform: none;
}

.dm-existing-membership label .dm-field-hint {
    grid-column: 2;
}

.dm-payment-options .wc_payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dm-payment-options .wc_payment_method {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    padding: .45rem 0;
    border-top: 1px solid #eee;
}

.dm-payment-options .wc_payment_method:first-child {
    border-top: 0;
    padding-top: 0;
}

.dm-payment-options .wc_payment_method > label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

.dm-payment-options .payment_box {
    flex: 0 0 100%;
    margin: .35rem 0 0;
    padding: .75rem;
    background: #f7f7f7;
    border-radius: 4px;
    font-size: .92em;
}

/* ── Legacy grid (fallback) ─────────────────────────────────────────── */
.dm-form-grid {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dm-form-grid label {
    display: grid;
    gap: .35rem;
    font-weight: 500;
}

.dm-form-grid input {
    width: 100%;
}

.dm-terms {
    margin: .25rem 0;
}


.dm-membership-option button strong {
    position: absolute;
    right: -5px;
    width: 75px;
    height: 75px;
    transform: rotate(15deg);
    z-index: 10;
    border-radius: 100%;
    background-color: white;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 10px -2px black;
    color: var(--primary-color);
    font-family: 'Oswald';
    font-size: .9rem;
    line-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dm-discount-text {
    font-size: .6rem;
    position: relative;
    top: 13px;
}

.dm-renewal-options .dm-discount-text {
    font-size: inherit;
    position: inherit;
    font-weight: 600;
}

/* === COMPONENT: Settings switch === */
.dm-switch {
    display: inline-flex;
    flex-shrink: 0;
    height: 1.5rem;
    position: relative;
    width: 2.75rem;
}

.dm-switch input {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.dm-switch__track,
.dm-switch__knob {
    pointer-events: none;
}

.dm-switch__track {
    background: #d1d5db;
    border-radius: 9999px;
    inset: 0;
    position: absolute;
    transition: background-color 150ms ease;
}

.dm-switch__knob {
    background: #fff;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
    height: 1.25rem;
    left: 0.125rem;
    position: absolute;
    top: 0.125rem;
    transition: transform 150ms ease;
    width: 1.25rem;
}

.dm-switch input:checked + .dm-switch__track {
    background: #801010;
}

.dm-switch input:checked + .dm-switch__track + .dm-switch__knob {
    transform: translateX(1.25rem);
}

.dm-switch input:focus-visible + .dm-switch__track {
    outline: 2px solid rgb(128 16 16 / 0.45);
    outline-offset: 2px;
}

.dm-status-menu {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgb(0 0 0 / 0.08);
    list-style: none;
    margin: 0;
    min-width: 12rem;
    padding: 0.25rem 0;
    position: fixed;
    z-index: 50;
}

.dm-status-menu button {
    background: transparent;
    border: 0;
    color: #1e1e1e;
    cursor: pointer;
    display: block;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    text-align: left;
    width: 100%;
}

.dm-status-menu button:hover {
    background: #f9f9f9;
}

.dm-status-menu button[aria-selected="true"] {
    color: #801010;
    font-weight: 600;
}

.dm-status-total {
    background: transparent;
    border: 0;
    color: #1e1e1e;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.125rem 0;
}

.dm-status-total.is-active strong {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dm-status-chip {
    align-items: center;
    background: #e5e7eb;
    border: 0;
    border-radius: 9999px;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 0.35rem;
    line-height: 1.2;
    padding: 0.125rem 0.5rem;
}

.dm-status-chip strong {
    font-weight: 600;
}

.dm-status-chip--completed {
    background: rgb(23 179 103 / 0.1);
    color: #17b367;
}

.dm-status-chip--processing {
    background: rgb(23 99 179 / 0.1);
    color: #1763b3;
}

.dm-status-chip--pending {
    background: rgb(245 158 11 / 0.1);
    color: #f59e0b;
}

.dm-status-chip--on-hold {
    background: rgb(245 158 11 / 0.2);
    color: #f59e0b;
}

.dm-status-chip--failed {
    background: rgb(220 38 38 / 0.1);
    color: #dc2626;
}

.dm-status-chip.is-active {
    box-shadow: inset 0 0 0 1.5px currentColor;
}

.dm-status-chip--static {
    cursor: default;
}

.dm-status-info {
    background: transparent;
    border: 0;
    cursor: pointer;
    line-height: 0;
    padding: 0;
}

.dm-status-popover {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgb(0 0 0 / 0.08);
    padding: 0.75rem 0.875rem;
    position: fixed;
    width: min(18rem, calc(100vw - 1.5rem));
    z-index: 60;
}

.dm-status-popover__title {
    color: #1e1e1e;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.dm-status-popover__body {
    color: #1e1e1e;
    font-size: 0.8125rem;
    line-height: 1.45;
    margin: 0;
}

.dm-mail-preview {
    width: min(22rem, calc(100vw - 1.5rem));
}

.dm-mail-preview__sample {
    background: #f9f9f9;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #1e1e1e;
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-top: 0.75rem;
    padding: 0.75rem;
}

.dm-mail-preview__sample p {
    margin: 0 0 0.5rem;
}

.dm-mail-preview__sample p:last-child {
    margin-bottom: 0;
}

.dm-mail-preview__label {
    color: #6b7280;
}

.material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    overflow: hidden;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: normal;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

.material-symbols-outlined.w-3,
.material-symbols-outlined.w-3\.5 {
    width: 0.875rem;
    height: 0.875rem;
    font-size: 0.875rem;
}

.material-symbols-outlined.w-4,
.material-symbols-outlined.text-sm {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
}

.material-symbols-outlined.w-5 {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.25rem;
}

.material-symbols-outlined.text-xs {
    width: 0.75rem;
    height: 0.75rem;
    font-size: 0.75rem;
}

.material-symbols-outlined.text-lg {
    width: 1.125rem;
    height: 1.125rem;
    font-size: 1.125rem;
}

.material-symbols-outlined.text-base {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
}

.material-symbols-outlined.text-xl {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.25rem;
}

.material-symbols-outlined.text-2xl {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.5rem;
}

.dm-attention-fold {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s ease;
}

.dm-attention-fold.is-open {
    grid-template-rows: 1fr;
}

.dm-attention-fold > div {
    min-height: 0;
    overflow: hidden;
}