/* ==========================================================
   Leinenzeit – WooCommerce Mein Konto
========================================================== */


/* ==========================================================
   Grundlayout
========================================================== */

body.woocommerce-account .wp-site-blocks {
    width: 100%;
}

body.woocommerce-account main {
    width: min(100% - 48px, 1200px);
    min-height: 0 !important;
    margin-inline: auto;
    padding-top: 0;
    padding-bottom: 72px;
    background-color: transparent;
}

body.woocommerce-account,
body.woocommerce-account main.site-main {
    background-color: #faf7f0;
}

body.woocommerce-account .site-footer {
    margin-top: 0;
}

body.woocommerce-account .content-page__article {
    width: 100%;
}

body.woocommerce-account .content-page__title {
    margin-bottom: 32px;
    color: #222222;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.05;
    text-align: center;
}

body.woocommerce-account .content-page__body,
body.woocommerce-account .woocommerce {
    width: 100%;
}


/* ==========================================================
   Allgemeine Typografie und Links
========================================================== */

body.woocommerce-account .woocommerce h2,
body.woocommerce-account .woocommerce h3 {
    color: #222222;
}

body.woocommerce-account .woocommerce h2 {
    margin-bottom: 24px;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
}

body.woocommerce-account .woocommerce h3 {
    margin-bottom: 16px;
    font-size: 1.65rem;
}

body.woocommerce-account .woocommerce p + p {
    margin-top: 16px;
}

body.woocommerce-account .woocommerce a:not(.button) {
    color: #6f5235;
    text-decoration: underline;
    text-decoration-color: rgba(139, 107, 71, 0.45);
    text-underline-offset: 3px;
    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

body.woocommerce-account .woocommerce a:not(.button):hover {
    color: #8b6b47;
    text-decoration-color: #8b6b47;
}


/* ==========================================================
   WooCommerce-Meldungen
========================================================== */

body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message {
    margin: 0 0 24px;
    padding: 16px 20px 16px 52px;
    border: 1px solid #ddd4c7;
    border-top: 3px solid #8b6b47;
    border-radius: 6px;
    background: #ffffff;
    color: #222222;
    box-shadow: none;
}

body.woocommerce-account .woocommerce-error::before,
body.woocommerce-account .woocommerce-info::before,
body.woocommerce-account .woocommerce-message::before {
    top: 16px;
    color: #8b6b47;
}

body.woocommerce-account .woocommerce-error {
    border-top-color: #a8463f;
}

body.woocommerce-account .woocommerce-error::before {
    color: #a8463f;
}

body.woocommerce-account .woocommerce-message .button,
body.woocommerce-account .woocommerce-info .button {
    margin-left: 16px;
}

body.woocommerce-account:not(.logged-in) .woocommerce-error,
body.woocommerce-account:not(.logged-in) .woocommerce-info,
body.woocommerce-account:not(.logged-in) .woocommerce-message {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 10px;
}

body.woocommerce-account.woocommerce-lost-password:not(.logged-in) .woocommerce-error,
body.woocommerce-account.woocommerce-lost-password:not(.logged-in) .woocommerce-info,
body.woocommerce-account.woocommerce-lost-password:not(.logged-in) .woocommerce-message {
    max-width: 640px;
    margin-inline: auto;
}


/* ==========================================================
   Login und Registrierung
========================================================== */

body.woocommerce-account:not(.logged-in) .woocommerce {
    max-width: 1000px;
    margin-inline: auto;
}

body.woocommerce-account #customer_login {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 32px;
    margin: 0;
}

body.woocommerce-account #customer_login::before,
body.woocommerce-account #customer_login::after {
    display: none;
}

body.woocommerce-account #customer_login > .u-column1,
body.woocommerce-account #customer_login > .u-column2 {
    float: none;
    width: auto;
    padding: 32px;
    border: 1px solid #ddd4c7;
    border-radius: 6px;
    background: #ffffff;
}

body.woocommerce-account #customer_login > .u-column1:only-child {
    grid-column: 1 / -1;
    width: min(100%, 560px);
    margin-inline: auto;
}

body.woocommerce-account form.login,
body.woocommerce-account form.register,
body.woocommerce-account form.lost_reset_password {
    margin: 0;
    padding: 0;
    border: 0;
}

body.woocommerce-account form.lost_reset_password {
    max-width: 640px;
    margin-inline: auto;
    padding: 32px;
    border: 1px solid #ddd4c7;
    border-radius: 6px;
    background: #ffffff;
}

body.woocommerce-account .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 4px 0 18px;
}

body.woocommerce-account .woocommerce-form-login__rememberme input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #8b6b47;
}

body.woocommerce-account .woocommerce-LostPassword {
    margin-top: 18px;
}

body.woocommerce-account .woocommerce-privacy-policy-text {
    margin: 4px 0 20px;
    color: #5f5a54;
    font-size: 0.9rem;
}


/* ==========================================================
   CEV – E-Mail-Verifizierung
========================================================== */

body.woocommerce-account #otp-popup {
    font-family: "Inter", sans-serif;
}

body.woocommerce-account #otp-popup.cev-authorization-grid__visual {
    background-color: rgba(34, 34, 34, 0.42) !important;
    backdrop-filter: blur(2px);
}

body.woocommerce-account #otp-popup .otp_popup_inn {
    padding: 24px;
}

body.woocommerce-account #otp-popup .cev-authorization-grid__holder {
    padding: 0;
}

body.woocommerce-account #otp-popup .cev-authorization-grid__inner {
    width: min(100%, 500px);
    max-width: 500px;
}

body.woocommerce-account #otp-popup .cev-authorization {
    overflow: hidden;
    border: 1px solid #ddd4c7;
    border-radius: 8px;
    background: #faf7f0 !important;
    box-shadow: 0 18px 50px rgba(34, 34, 34, 0.16);
}

body.woocommerce-account #otp-popup .cev-authorization__holder {
    padding: 30px 34px 18px;
    color: #222222;
    font-family: "Inter", sans-serif;
    font-size: 0.94rem;
    line-height: 1.55;
    text-align: left;
}

body.woocommerce-account #otp-popup .back_btn {
    width: 26px;
    margin-bottom: 8px;
    color: #6f5235;
    opacity: 0.9;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

body.woocommerce-account #otp-popup .back_btn:hover {
    opacity: 1;
    transform: translateX(-2px);
}

body.woocommerce-account #otp-popup .back_btn svg {
    width: 26px;
    height: 26px;
    fill: #6f5235;
}

body.woocommerce-account #otp-popup .popup_image {
    display: block;
    width: 105px !important;
    margin: 2px auto 18px;
    border-radius: 0;
}

body.woocommerce-account #otp-popup .popup_image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

body.woocommerce-account #otp-popup .cev-authorization__heading {
    margin: 0;
}

body.woocommerce-account #otp-popup .cev-authorization__title {
    display: block;
    margin: 0 0 10px;
    color: #222222;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.9rem !important;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
}

body.woocommerce-account #otp-popup .cev-authorization__description {
    display: block;
    max-width: 390px;
    margin: 0 auto 22px;
    color: #5f5a54;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: center;
}

body.woocommerce-account #otp-popup .cev-pin-verification {
    width: 100%;
}

body.woocommerce-account #otp-popup .otp-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0;
}

body.woocommerce-account #otp-popup .otp-input {
    width: 54px !important;
    height: 58px;
    min-height: 58px;
    margin: 0 !important;
    padding: 0;
    border: 1px solid #d8cfc3 !important;
    border-radius: 6px;
    outline: none;
    background: #ffffff !important;
    color: #222222;
    font-family: "Inter", sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 58px;
    text-align: center;
    box-shadow: none !important;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

body.woocommerce-account #otp-popup .otp-input:hover {
    border-color: #c5b8a8 !important;
}

body.woocommerce-account #otp-popup .otp-input:focus {
    border-color: #8b6b47 !important;
    box-shadow: 0 0 0 3px rgba(139, 107, 71, 0.12) !important;
}

body.woocommerce-account #otp-popup .error_mesg {
    margin-top: 14px;
    color: #a8463f;
    font-size: 0.85rem;
    line-height: 1.45;
    text-align: center;
}

body.woocommerce-account #otp-popup .resend_sucsess {
    margin: 14px 0 0 !important;
    color: #52704f !important;
    font-size: 0.84rem;
    line-height: 1.45;
    text-align: center;
}

body.woocommerce-account #otp-popup .cev-authorization__footer {
    margin: 0;
    padding: 14px 24px 18px;
    border-top: 1px solid #e3dbd0;
    border-radius: 0 0 8px 8px;
    background: rgba(245, 241, 232, 0.55);
    color: #5f5a54;
    font-family: "Inter", sans-serif;
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center !important;
}

body.woocommerce-account #otp-popup .cev-authorization__footer a,
body.woocommerce-account #otp-popup .cev-link,
body.woocommerce-account #otp-popup a {
    color: #6f5235;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(139, 107, 71, 0.45);
    text-underline-offset: 3px;
}

body.woocommerce-account #otp-popup .cev-authorization__footer a:hover,
body.woocommerce-account #otp-popup .cev-link:hover,
body.woocommerce-account #otp-popup a:hover {
    color: #8b6b47;
    text-decoration-color: #8b6b47;
}


/* ==========================================================
   Formulare
========================================================== */

body.woocommerce-account .form-row {
    margin: 0 0 18px;
    padding: 0;
}

body.woocommerce-account .form-row label {
    display: block;
    margin-bottom: 7px;
    color: #342f2a;
    font-size: 0.92rem;
    font-weight: 500;
}

body.woocommerce-account .form-row .required {
    color: #8b6b47;
    font-size: 0.78em;
    text-decoration: none;
    vertical-align: top;
}

body.woocommerce-account .input-text,
body.woocommerce-account input[type="email"],
body.woocommerce-account input[type="password"],
body.woocommerce-account input[type="tel"],
body.woocommerce-account input[type="text"],
body.woocommerce-account select,
body.woocommerce-account textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #d8cfc3;
    border-radius: 6px;
    outline: none;
    background: #ffffff;
    color: #222222;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

body.woocommerce-account textarea {
    min-height: 120px;
    resize: vertical;
}

body.woocommerce-account .input-text:focus,
body.woocommerce-account input:focus,
body.woocommerce-account select:focus,
body.woocommerce-account textarea:focus {
    border-color: #8b6b47;
    box-shadow: 0 0 0 3px rgba(139, 107, 71, 0.12);
}

body.woocommerce-account .password-input {
    position: relative;
    display: block;
    width: 100%;
}

body.woocommerce-account .show-password-input {
    position: absolute;
    top: 50%;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

body.woocommerce-account .show-password-input::after {
    margin: 0;
    line-height: 1;
}

body.woocommerce-account .password-input input {
    padding-right: 48px;
}

body.woocommerce-account .select2-container {
    width: 100% !important;
}

body.woocommerce-account .select2-container .select2-selection--single {
    height: 48px;
    border: 1px solid #cec4b7;
    border-radius: 6px;
}

body.woocommerce-account .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 9px 42px 9px 14px;
    line-height: 28px;
}

body.woocommerce-account .select2-container .select2-selection--single .select2-selection__arrow {
    top: 10px;
    right: 10px;
}

body.woocommerce-account fieldset {
    margin: 28px 0 0;
    padding: 24px;
    border: 1px solid #ddd4c7;
    border-radius: 6px;
}

body.woocommerce-account legend {
    padding-inline: 8px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.55rem;
    font-weight: 600;
}


/* ==========================================================
   Buttons
========================================================== */

body.woocommerce-account .woocommerce button.button,
body.woocommerce-account .woocommerce a.button,
body.woocommerce-account .woocommerce input.button {
    min-height: 46px;
    padding: 11px 22px;
    border: 1px solid #8b6b47;
    border-radius: 6px;
    background: #8b6b47;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

body.woocommerce-account .woocommerce button.button:hover,
body.woocommerce-account .woocommerce a.button:hover,
body.woocommerce-account .woocommerce input.button:hover {
    border-color: #735538;
    background: #735538;
    color: #ffffff;
}

body.woocommerce-account .woocommerce button.button:focus-visible,
body.woocommerce-account .woocommerce a.button:focus-visible,
body.woocommerce-account .woocommerce input.button:focus-visible {
    outline: 3px solid rgba(139, 107, 71, 0.28);
    outline-offset: 3px;
}

body.woocommerce-account .woocommerce button.button:active,
body.woocommerce-account .woocommerce a.button:active,
body.woocommerce-account .woocommerce input.button:active {
    transform: translateY(1px);
}


/* ==========================================================
   Eingeloggter Kontobereich
========================================================== */

body.woocommerce-account.logged-in .woocommerce {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

body.woocommerce-account.logged-in .woocommerce::before,
body.woocommerce-account.logged-in .woocommerce::after {
    display: none;
    content: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none;
    width: auto;
    padding: 10px;
    border: 1px solid #ddd4c7;
    border-radius: 6px;
    background: #ffffff;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: grid;
    gap: 4px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 12px 14px;
    border-radius: 5px;
    color: #342f2a !important;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none !important;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    background: #f5f1e8;
    color: #6f5235 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    background: #8b6b47;
    color: #ffffff !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 6px;
    padding-top: 7px;
    border-top: 1px solid #e3dbd0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #7f3732 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #fbefed;
    color: #7f3732 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: auto;
    min-width: 0;
    padding: 32px;
    border: 1px solid #ddd4c7;
    border-radius: 6px;
    background: #ffffff;
}

body.woocommerce-account .woocommerce-MyAccount-content > :first-child {
    margin-top: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content > :last-child {
    margin-bottom: 0;
}


/* ==========================================================
   Bestellungen und Tabellen
========================================================== */

body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 76px;
    margin: 0;
    padding: 18px 20px 18px 52px;
}

body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info .button {
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    white-space: nowrap;
}

body.woocommerce-account .woocommerce-orders-table {
    margin-bottom: 0;
}

body.woocommerce-account .woocommerce-orders-table th,
body.woocommerce-account .woocommerce-orders-table td {
    vertical-align: middle;
}

body.woocommerce-account .woocommerce-orders-table__header-order-number,
body.woocommerce-account .woocommerce-orders-table__cell-order-number {
    white-space: nowrap;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-number a {
    font-weight: 600;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-status {
    color: #514b45;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-total {
    white-space: nowrap;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-actions {
    white-space: nowrap;
    text-align: right;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.88rem;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button + .button {
    margin-left: 6px;
}

body.woocommerce-account table.shop_table {
    width: 100%;
    margin: 0 0 24px;
    border: 1px solid #ddd4c7;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
}

body.woocommerce-account table.shop_table th,
body.woocommerce-account table.shop_table td {
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid #e7e0d7;
    text-align: left;
    vertical-align: middle;
}

body.woocommerce-account .woocommerce-order-details table.shop_table th,
body.woocommerce-account .woocommerce-order-details table.shop_table td {
    vertical-align: top;
}

body.woocommerce-account .woocommerce-order-details table.shop_table thead th:last-child,
body.woocommerce-account .woocommerce-order-details table.shop_table tbody td:last-child {
    width: 170px;
    text-align: right;
    white-space: nowrap;
}

body.woocommerce-account .woocommerce-order-details table.shop_table tfoot th {
    width: auto;
    text-align: right;
}

body.woocommerce-account .woocommerce-order-details table.shop_table tfoot td {
    width: 170px;
    text-align: right;
    white-space: nowrap;
}

body.woocommerce-account .woocommerce-order-details .wc-item-meta {
    margin: 8px 0 0;
    padding: 0;
}

body.woocommerce-account .woocommerce-order-details .wc-item-meta li {
    margin: 3px 0 0;
}

body.woocommerce-account .woocommerce-order-details .wc-item-meta p {
    display: inline;
    margin: 0;
}

body.woocommerce-account table.shop_table th {
    background: #f5f1e8;
    color: #342f2a;
    font-size: 0.9rem;
    font-weight: 600;
}

body.woocommerce-account table.shop_table tr:last-child td,
body.woocommerce-account table.shop_table tfoot tr:last-child th {
    border-bottom: 0;
}

body.woocommerce-account table.shop_table .button {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.88rem;
}

body.woocommerce-account .woocommerce-order-details,
body.woocommerce-account .woocommerce-customer-details {
    margin-top: 32px;
}

body.woocommerce-account mark {
    padding: 0;
    background: transparent;
    color: #342f2a;
    font-weight: 600;
}


/* ==========================================================
   Zahlungsinformationen in Bestelldetails
========================================================== */

body.woocommerce-account .leinenzeit-account-payment {
    margin-top: 32px;
    padding: 26px;
    border: 1px solid #ddd4c7;
    border-radius: 6px;
    background: #fdfcf9;
}

body.woocommerce-account .leinenzeit-account-payment h2 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 2.5vw, 2rem);
    line-height: 1.15;
}

body.woocommerce-account .leinenzeit-account-payment__intro,
body.woocommerce-account .leinenzeit-account-payment__hint {
    margin: 0;
    color: #514b45;
    line-height: 1.65;
}

body.woocommerce-account .leinenzeit-account-payment__details {
    margin: 20px 0;
    border-top: 1px solid #e7e0d7;
}

body.woocommerce-account .leinenzeit-account-payment__row {
    display: grid;
    grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
    gap: 20px;
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid #e7e0d7;
}

body.woocommerce-account .leinenzeit-account-payment__row dt,
body.woocommerce-account .leinenzeit-account-payment__row dd {
    margin: 0;
}

body.woocommerce-account .leinenzeit-account-payment__row dt {
    color: #6f655c;
    font-weight: 600;
}

body.woocommerce-account .leinenzeit-account-payment__row dd {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #342f2a;
}

body.woocommerce-account .leinenzeit-account-payment__row--reference dd {
    color: #6f5539;
}


/* ==========================================================
   Adressen
========================================================== */

body.woocommerce-account .woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
    align-items: stretch;
}

body.woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

body.woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses::before,
body.woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses::after {
    display: none;
    content: none;
}

body.woocommerce-account .woocommerce-customer-details > h2 {
    margin: 0 0 24px;
}

body.woocommerce-account .woocommerce-customer-details .woocommerce-column {
    float: none;
    width: 100%;
    max-width: none;
    clear: none;
    margin: 0;
    padding: 26px;
    border: 1px solid #ddd4c7;
    border-radius: 6px;
    background: #fdfcf9;
}

body.woocommerce-account .woocommerce-customer-details .woocommerce-column--billing-address {
    grid-column: 1;
}

body.woocommerce-account .woocommerce-customer-details .woocommerce-column--shipping-address {
    grid-column: 2;
}

body.woocommerce-account .woocommerce-customer-details .woocommerce-column__title {
    margin: 0 0 16px;
    font-size: clamp(1.7rem, 2.5vw, 2rem);
    line-height: 1.15;
}

body.woocommerce-account .woocommerce-customer-details address {
    margin: 0;
    padding: 0;
    border: 0;
    color: #514b45;
    font-style: normal;
    line-height: 1.75;
}

body.woocommerce-account .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-Addresses::after {
    display: none;
    content: none;
}

body.woocommerce-account .woocommerce-Addresses .woocommerce-Address,
body.woocommerce-account .woocommerce-Addresses .u-column1,
body.woocommerce-account .woocommerce-Addresses .u-column2,
body.woocommerce-account .woocommerce-Addresses .col-1,
body.woocommerce-account .woocommerce-Addresses .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.woocommerce-account .woocommerce-Address {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 26px;
    border: 1px solid #ddd4c7;
    border-radius: 6px;
    background: #fdfcf9;
}

body.woocommerce-account .woocommerce-Address-title {
    display: contents;
}

body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3 {
    order: 1;
    float: none !important;
    width: auto !important;
    margin: 0 0 16px;
    padding: 0;
    color: #222222;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.7rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
}

body.woocommerce-account .woocommerce-Address address {
    order: 2;
    flex: 1 1 auto;
    margin: 0 0 18px;
    color: #514b45;
    font-style: normal;
    line-height: 1.75;
}

body.woocommerce-account .woocommerce-Address-title .edit {
    position: static !important;
    order: 3;
    align-self: flex-start;
    float: none !important;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

body.woocommerce-account .woocommerce-Address-title .edit::after {
    content: " →";
}

body.woocommerce-account .woocommerce-Address-title .edit:hover {
    color: #8b6b47;
}


/* ==========================================================
   Adressformular
========================================================== */

body.woocommerce-account .woocommerce-address-fields {
    width: 100%;
}

body.woocommerce-account .woocommerce-address-fields > h3,
body.woocommerce-account .woocommerce-MyAccount-content form > h3 {
    margin: 0 0 26px;
    color: #222222;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.75rem, 2.6vw, 2.1rem);
    font-weight: 600;
    line-height: 1.15;
}

body.woocommerce-account .woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 18px;
    width: 100%;
}

body.woocommerce-account .woocommerce-address-fields__field-wrapper::before,
body.woocommerce-account .woocommerce-address-fields__field-wrapper::after {
    display: none;
    content: none;
}

body.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0;
    padding: 0;
    grid-column: 1 / -1;
}

/*
 * Vor- und Nachname stehen bewusst in einer gemeinsamen
 * zweispaltigen Zeile.
 */
body.woocommerce-account .woocommerce-address-fields__field-wrapper #billing_first_name_field,
body.woocommerce-account .woocommerce-address-fields__field-wrapper #shipping_first_name_field {
    grid-column: 1;
}

body.woocommerce-account .woocommerce-address-fields__field-wrapper #billing_last_name_field,
body.woocommerce-account .woocommerce-address-fields__field-wrapper #shipping_last_name_field {
    grid-column: 2;
}

/*
 * Gleiche vertikale Ausrichtung der beiden Namensfelder.
 */
body.woocommerce-account .woocommerce-address-fields__field-wrapper #billing_first_name_field,
body.woocommerce-account .woocommerce-address-fields__field-wrapper #billing_last_name_field,
body.woocommerce-account .woocommerce-address-fields__field-wrapper #shipping_first_name_field,
body.woocommerce-account .woocommerce-address-fields__field-wrapper #shipping_last_name_field {
    align-self: start;
}

body.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row label {
    min-height: 22px;
    margin-bottom: 7px;
}

body.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

body.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row .input-text,
body.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row select,
body.woocommerce-account .woocommerce-address-fields__field-wrapper .select2-container {
    width: 100% !important;
}

body.woocommerce-account .woocommerce-address-fields__field-wrapper #billing_country_field strong,
body.woocommerce-account .woocommerce-address-fields__field-wrapper #shipping_country_field strong {
    display: inline-block;
    padding-top: 3px;
    color: #342f2a;
    font-weight: 600;
}

body.woocommerce-account .woocommerce-address-fields p:last-child {
    margin: 24px 0 0;
}

body.woocommerce-account .woocommerce-address-fields .button {
    min-width: 150px;
}



/* ==========================================================
   Kontodetails
========================================================== */

body.woocommerce-account .woocommerce-EditAccountForm {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
}

body.woocommerce-account .woocommerce-EditAccountForm::before,
body.woocommerce-account .woocommerce-EditAccountForm::after,
body.woocommerce-account .woocommerce-EditAccountForm > .clear {
    display: none;
    content: none;
}

body.woocommerce-account .woocommerce-EditAccountForm .form-row {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0;
    padding: 0;
}

body.woocommerce-account .woocommerce-EditAccountForm .form-row[hidden] {
    display: none !important;
}

body.woocommerce-account .account-name-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    width: 100%;
}

body.woocommerce-account .account-name-row .form-row {
    align-self: start;
}

body.woocommerce-account .account-name-row .form-row label {
    min-height: 22px;
    margin-bottom: 7px;
}

body.woocommerce-account .woocommerce-EditAccountForm fieldset {
    width: 100%;
    margin: 8px 0 0;
    padding: 24px;
    border: 1px solid #ddd4c7;
    border-radius: 6px;
    background: #fdfcf9;
}

body.woocommerce-account .woocommerce-EditAccountForm fieldset legend {
    padding-inline: 8px;
    color: #222222;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.2;
}

body.woocommerce-account .woocommerce-EditAccountForm fieldset .form-row {
    margin-bottom: 18px;
}

body.woocommerce-account .woocommerce-EditAccountForm fieldset .form-row:last-child {
    margin-bottom: 0;
}

body.woocommerce-account .woocommerce-EditAccountForm > p:last-of-type {
    margin: 0;
}

body.woocommerce-account .woocommerce-EditAccountForm > p:last-of-type .button {
    min-width: 170px;
}


/* ==========================================================
   Seitennavigation
========================================================== */

body.woocommerce-account .woocommerce-pagination {
    margin-top: 24px;
}

body.woocommerce-account .woocommerce-pagination .button + .button {
    margin-left: 8px;
}


/* ==========================================================
   Tablet
========================================================== */

@media (max-width: 900px) {
    body.woocommerce-account.logged-in .woocommerce {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 22px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content {
        padding: 24px;
    }

    body.woocommerce-account #customer_login {
        gap: 22px;
    }

    body.woocommerce-account #customer_login > .u-column1,
    body.woocommerce-account #customer_login > .u-column2 {
        padding: 24px;
    }

    body.woocommerce-account .woocommerce-Address {
        padding: 22px;
    }

    body.woocommerce-account .woocommerce-address-fields__field-wrapper {
        column-gap: 18px;
    }
}


/* ==========================================================
   Smartphone
========================================================== */

@media (max-width: 767px) {
    body.woocommerce-account main {
        width: min(100% - 32px, 1200px);
        padding-top: 0;
        padding-bottom: 48px;
    }

    body.woocommerce-account .content-page__title {
        margin-bottom: 24px;
    }

    body.woocommerce-account #customer_login,
    body.woocommerce-account.logged-in .woocommerce {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body.woocommerce-account #customer_login > .u-column1,
    body.woocommerce-account #customer_login > .u-column2,
    body.woocommerce-account form.lost_reset_password,
    body.woocommerce-account .woocommerce-MyAccount-content {
        padding: 22px 18px;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation {
        padding: 8px;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info {
        display: block;
        min-height: 0;
        padding: 18px 18px 18px 48px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info .button {
        display: block;
        width: fit-content;
        margin: 14px 0 0;
    }

    body.woocommerce-account .woocommerce-Addresses {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.woocommerce-account .woocommerce-customer-details .woocommerce-columns--addresses {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.woocommerce-account .woocommerce-customer-details .woocommerce-column--billing-address,
    body.woocommerce-account .woocommerce-customer-details .woocommerce-column--shipping-address {
        grid-column: 1;
    }

    body.woocommerce-account .woocommerce-customer-details .woocommerce-column {
        padding: 22px 20px;
    }

    body.woocommerce-account .leinenzeit-account-payment {
        padding: 22px 20px;
    }

    body.woocommerce-account .leinenzeit-account-payment__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    body.woocommerce-account .woocommerce-order-details table.shop_table thead th:last-child,
    body.woocommerce-account .woocommerce-order-details table.shop_table tbody td:last-child,
    body.woocommerce-account .woocommerce-order-details table.shop_table tfoot td {
        width: 130px;
    }

    body.woocommerce-account .woocommerce-Address {
        padding: 22px 20px;
    }

    body.woocommerce-account .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body.woocommerce-account .woocommerce-address-fields__field-wrapper #billing_first_name_field,
    body.woocommerce-account .woocommerce-address-fields__field-wrapper #billing_last_name_field,
    body.woocommerce-account .woocommerce-address-fields__field-wrapper #shipping_first_name_field,
    body.woocommerce-account .woocommerce-address-fields__field-wrapper #shipping_last_name_field {
        grid-column: 1;
    }


    body.woocommerce-account .account-name-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body.woocommerce-account table.shop_table_responsive,
    body.woocommerce-account table.shop_table_responsive tbody,
    body.woocommerce-account table.shop_table_responsive tr,
    body.woocommerce-account table.shop_table_responsive td {
        display: block;
        width: 100%;
    }

    body.woocommerce-account table.shop_table_responsive thead {
        display: none;
    }

    body.woocommerce-account table.shop_table_responsive tr {
        padding: 12px 0;
        border-bottom: 1px solid #ddd4c7;
    }

    body.woocommerce-account table.shop_table_responsive tr:last-child {
        border-bottom: 0;
    }

    body.woocommerce-account table.shop_table_responsive td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        padding: 9px 14px;
        border-bottom: 0;
        text-align: right !important;
    }

    body.woocommerce-account table.shop_table_responsive td::before {
        color: #342f2a;
        font-weight: 600;
        text-align: left;
    }

    body.woocommerce-account table.shop_table_responsive .woocommerce-orders-table__cell-order-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 8px;
        text-align: left !important;
    }

    body.woocommerce-account table.shop_table_responsive .woocommerce-orders-table__cell-order-actions::before {
        display: block;
        float: none !important;
        width: 100%;
        margin: 0;
    }

    body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 32px;
        margin: 0;
        padding: 5px 10px;
        font-size: 0.8rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button + .button {
        margin-left: 0;
    }

    body.woocommerce-account fieldset {
        padding: 20px 14px;
    }

    body.woocommerce-account #otp-popup .otp_popup_inn {
        padding: 16px;
    }

    body.woocommerce-account #otp-popup .cev-authorization__holder {
        padding: 24px 22px 16px;
    }

    body.woocommerce-account #otp-popup .popup_image {
        width: 90px !important;
        margin-bottom: 14px;
    }

    body.woocommerce-account #otp-popup .cev-authorization__title {
        font-size: 1.65rem !important;
    }

    body.woocommerce-account #otp-popup .cev-authorization__description {
        font-size: 0.86rem;
    }

    body.woocommerce-account #otp-popup .otp-container {
        gap: 9px;
    }

    body.woocommerce-account #otp-popup .otp-input {
        width: 48px !important;
        height: 54px;
        min-height: 54px;
        line-height: 54px;
    }
}


/* ==========================================================
   Kleine Smartphones
========================================================== */

@media (max-width: 480px) {
    body.woocommerce-account .woocommerce-MyAccount-navigation ul {
        grid-template-columns: 1fr;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation a {
        padding: 11px 12px;
    }

    body.woocommerce-account .woocommerce-message .button,
    body.woocommerce-account .woocommerce-info .button {
        float: none;
        width: 100%;
        margin: 0 0 12px;
    }

    body.woocommerce-account table.shop_table_responsive td {
        display: block;
        text-align: left !important;
    }

    body.woocommerce-account table.shop_table_responsive td::before {
        display: block;
        margin-bottom: 4px;
    }

    body.woocommerce-account #otp-popup .cev-authorization__holder {
        padding-inline: 18px;
    }

    body.woocommerce-account #otp-popup .otp-container {
        gap: 7px;
    }

    body.woocommerce-account #otp-popup .otp-input {
        width: 44px !important;
        height: 52px;
        min-height: 52px;
        font-size: 1.2rem;
        line-height: 52px;
    }

    body.woocommerce-account #otp-popup .cev-authorization__footer {
        padding-inline: 18px;
    }
}
