.dpp-portal {
    background: #fff;
    border: 1px solid #e2e6ee;
    border-radius: 12px;
    padding: 1.75em;
    margin: 0 0 1.75em;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    font-family: inherit;
}

.dpp-portal h2 {
    margin: 0 0 .25em;
    font-size: 1.15em;
    color: #111827;
}

.dpp-portal > p:first-of-type {
    color: #6b7280;
    margin: 0 0 1.25em;
    font-size: .92em;
}

.dpp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em 1.25em;
}

.dpp-field {
    display: flex;
    flex-direction: column;
    gap: .35em;
    margin: 0 0 1em;
}

.dpp-form-grid .dpp-field {
    margin-bottom: 0;
}

.dpp-field.dpp-field-wide {
    grid-column: 1 / -1;
}

.dpp-field label {
    font-weight: 600;
    font-size: .9em;
    color: #374151;
}

.dpp-field input[type="text"],
.dpp-field input[type="email"],
.dpp-field textarea {
    padding: .6em .75em;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: .95em;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.dpp-field input:focus,
.dpp-field textarea:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(230, 184, 0, .35);
}

.dpp-button {
    background: #ffcc00;
    color: #1f2937;
    border: none;
    padding: .7em 1.5em;
    border-radius: 8px;
    font-size: .95em;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.dpp-button:hover {
    background: #e6b800;
}

.dpp-button-secondary {
    display: inline-block;
    background: #fff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    text-decoration: none;
}

.dpp-button-secondary:hover {
    background: #fffbeb;
    border-color: #ffcc00;
}

.dpp-form-actions {
    display: flex;
    align-items: center;
    gap: 1em;
}

.dpp-cancel-link {
    color: #6b7280;
    font-size: .9em;
}

.dpp-inline-form {
    display: inline;
}

.dpp-link-button {
    background: none;
    border: none;
    padding: 0;
    color: #991b1b;
    font-size: .92em;
    cursor: pointer;
    text-decoration: underline;
}

.dpp-link-button:hover {
    color: #7f1d1d;
}

.dpp-naw-list-actions {
    display: flex;
    align-items: center;
    gap: 1em;
    white-space: nowrap;
}

.dpp-button-small {
    padding: .4em .9em;
    font-size: .85em;
}

.dpp-cart-total {
    font-size: .95em;
    color: #374151;
}

.dpp-cart-hint {
    color: #6b7280;
    font-size: .85em;
    margin: 0 0 .5em;
}

.dpp-authcode-form {
    display: flex;
    gap: .5em;
    align-items: center;
}

.dpp-authcode-input {
    padding: .45em .6em;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: .88em;
    width: 140px;
}

.dpp-authcode-input:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(230, 184, 0, .35);
}

.dpp-cart-item-error {
    color: #991b1b;
    font-size: .85em;
    margin-top: .4em;
}

.dpp-status-transfer,
.dpp-status-transfer_requested {
    background: #dbeafe;
    color: #1e40af;
}

.dpp-status-register {
    background: #f3f4f6;
    color: #374151;
}

.dpp-notice {
    display: flex;
    align-items: center;
    gap: .65em;
    padding: .85em 1.1em;
    border-radius: 10px;
    margin: 0 0 1.5em;
    font-size: .93em;
    font-weight: 500;
}

.dpp-notice::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dpp-notice-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.dpp-notice-success::before {
    background: #16a34a;
}

.dpp-notice-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.dpp-notice-error::before {
    background: #dc2626;
}

.dpp-hint {
    display: inline-block;
    background: #f3f4f6;
    color: #4b5563;
    padding: .3em .8em;
    border-radius: 999px;
    font-size: .85em;
    margin: 0 0 1.1em;
}

.dpp-hint code {
    background: none;
    padding: 0;
}

.dpp-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dpp-table {
    min-width: 100%;
    border-collapse: collapse;
    font-size: .92em;
}

.dpp-table th {
    text-align: left;
    padding: .6em .7em;
    font-size: .78em;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

.dpp-table td {
    padding: .7em;
    border-bottom: 1px solid #f0f1f4;
    vertical-align: top;
}

.dpp-table tr:last-child td {
    border-bottom: none;
}

.dpp-status {
    display: inline-block;
    padding: .25em .75em;
    border-radius: 999px;
    font-size: .8em;
    font-weight: 600;
    white-space: nowrap;
}

.dpp-status-registered {
    background: #dcfce7;
    color: #166534;
}

.dpp-status-failed {
    background: #fee2e2;
    color: #991b1b;
}

/* Login gate (shortcode + Home-template landingspagina) */
.dpp-login-gate {
    max-width: 380px;
    margin: 2em auto;
}

.dpp-login-gate h2,
.dpp-login-gate > p:first-of-type {
    text-align: center;
}

.dpp-login-gate form p {
    margin: 0 0 1.1em;
}

.dpp-login-gate label {
    display: block;
    font-weight: 600;
    font-size: .9em;
    margin-bottom: .35em;
    color: #374151;
}

.dpp-login-gate input[type="text"],
.dpp-login-gate input[type="password"] {
    width: 100%;
    padding: .65em .8em;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: .95em;
}

.dpp-login-gate input[type="text"]:focus,
.dpp-login-gate input[type="password"]:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(230, 184, 0, .35);
}

.dpp-login-gate .login-remember label {
    display: flex;
    align-items: center;
    gap: .5em;
    font-weight: 400;
}

.dpp-login-gate .login-remember input {
    width: auto;
}

.dpp-login-gate .login-submit input[type="submit"] {
    width: 100%;
    background: #ffcc00;
    color: #1f2937;
    border: none;
    padding: .7em 1.5em;
    border-radius: 8px;
    font-size: .95em;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.dpp-login-gate .login-submit input[type="submit"]:hover {
    background: #e6b800;
}

@media (max-width: 560px) {
    .dpp-form-grid {
        grid-template-columns: 1fr;
    }

    .dpp-portal {
        padding: 1.25em;
        border-radius: 10px;
    }
}
