.produkt-account-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 50px 0;
    background: transparent;
    border-radius: 1rem;
}
img.wp-smiley, img.emoji {
    height: 1em;
    width: 1em;
    margin: 0 .07em;
    vertical-align: -0.1em;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}


/* Layout with sidebar similar to the shop pages */
.account-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
}

.account-sidebar h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.account-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-sidebar li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-sidebar a {
    color: #000;
    text-decoration: none !important;
}

.account-sidebar a.active {
    font-weight: bold;
}

/* Grid with three cards per subscription */
.abo-row {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    margin: 0 0 40px 0;
    align-items: start;
}

.orders-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.abo-box,
.order-box {
    background: #f4f4f4;
    border-radius: 12px;
    padding: 24px;
}

.order-product-image {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    margin-bottom: 12px;
}

.orders-accordion .produkt-accordion-header {
    padding: 0.5rem 0;
    font-size: 16px;
    font-weight: 400;
}

.kundendaten-heading {
    margin-top: 0;
}

.address-heading {
    margin: 0;
}

.customer-box {
    background: none;
    padding: 0;
}

.customer-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.customer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1d2327;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    text-transform: uppercase;
}

.customer-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.customer-email {
    margin: 2px 0 0;
    font-size: 14px;
    color: #444;
}

.customer-phone {
    margin: 0 0 8px;
    font-size: 14px;
}

.address-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.order-box {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Customer order detail blocks */
.customer-order-box {
    gap: 12px;
}

.customer-order-meta p {
    margin: 0 0 4px;
}

.customer-order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.customer-order-item {
    display: flex;
    gap: 16px;
}

.customer-order-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.customer-order-info p {
    margin: 4px 0;
}

.customer-order-name {
    font-weight: 700;
}

.customer-order-period {
    font-size: 13px;
}

.customer-order-price {
    font-weight: 700;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.customer-order-price-per-day {
    font-weight: 400;
    font-size: 12px;
}

.customer-order-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-weight: 700;
}

.customer-order-total {
    margin-top: 8px;
}


.abo-box h3 {
    margin-bottom: 16px;
}

.abo-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.abo-title {
    display: flex;
    flex-direction: column;
}

.abo-title .status-badge {
    margin-top: 4px;
    align-self: flex-start;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: inline-block;
}

.status-badge.active {
    background-color: #28a745;
}

.status-badge.scheduled {
    background-color: #fd7e14;
}

.status-badge.cancelled {
    background-color: #dc3545;
}

.abo-info {
    font-size: 0.775rem;
    color: #000;
    margin-top: 12px;
}

.abo-box p,
.order-box p {
    margin: 8px 0;
}

.abo-box form {
    margin-top: 16px;
}

.abo-box button {
    padding: 10px 20px;
    font-size: 14px;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.abo-box button:hover {
    background-color: #c82333;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}




.produkt-account-email-form,
.produkt-account-code-form {
    max-width: 400px;
    margin: 0 auto 40px;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.produkt-account-email-form input,
.produkt-account-code-form input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.produkt-account-email-form button,
.produkt-account-code-form button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.produkt-account-email-form button:hover,
.produkt-account-code-form button:hover {
    background-color: #005d8f;
}

@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
    }
    .abo-row {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .address-row {
        grid-template-columns: 1fr;
    }
    .customer-order-item {
        flex-direction: column;
    }
    .kundendaten-heading {
        margin-top: 0;
        font-size: 22px;
    }
    .address-heading {
        margin: 0;
        font-size: 22px;
    }
}

/* Login page styling */
body.produkt-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
}

body.produkt-login-page header,
body.produkt-login-page footer,
body.produkt-login-page #masthead,
body.produkt-login-page #colophon {
    display: none !important;
}

.produkt-login-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.produkt-login-image,
.produkt-login-form {
    display: none;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-box h1 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 24px;
}

.login-box p {
    margin: 0 0 20px 0;
}

.login-box form {
    margin-bottom: 15px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login-box button:hover {
    background-color: #333;
}

.back-to-shop {
    display: block;
    margin-top: 15px;
    color: #000;
    text-decoration: underline;
}
