/* Explore Sofar - cart drawer, checkout, and account styling */

:root {
    /* Same palette and type as the landing page. */
    --esf-c-ink: #5b3d13;
    --esf-c-body: #5b3d13;
    --esf-c-muted: rgba(91, 61, 19, 0.62);
    --esf-c-line: rgba(91, 61, 19, 0.2);
    --esf-c-paper: #f9f4ea;
    --esf-c-shell: #dbccc3;
    --esf-c-accent: #000000;
    --esf-c-on-accent: #ffffff;
    --esf-c-serif: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", Georgia, serif;
    --esf-c-read: "Rasa", Georgia, "Times New Roman", serif;
    --esf-c-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* =========================================================
   Cart drawer
   ========================================================= */

.esf-drawer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: block;
}

.esf-drawer[hidden] {
    display: none;
}

.esf-drawer__scrim {
    position: absolute;
    inset: 0;
    background: rgba(28, 26, 23, 0.42);
    opacity: 0;
    transition: opacity 0.32s ease;
}

.esf-drawer__shell {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: var(--esf-c-paper);
    box-shadow: -18px 0 48px rgba(28, 26, 23, 0.14);
    transform: translateX(100%);
    transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.esf-drawer.is-open .esf-drawer__scrim {
    opacity: 1;
}

.esf-drawer.is-open .esf-drawer__shell {
    transform: translateX(0);
}

.esf-drawer__panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    font-family: var(--esf-c-sans);
    color: var(--esf-c-body);
    font-size: 15px;
    line-height: 1.6;
}

.esf-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    border-bottom: 1px solid var(--esf-c-line);
    flex: 0 0 auto;
}

.esf-drawer__title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--esf-c-ink);
}

.esf-drawer-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--esf-c-ink);
    color: #fff;
    font-size: 11px;
    letter-spacing: 0;
}

.esf-drawer__close {
    position: relative;
    width: 34px;
    height: 34px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    flex: 0 0 auto;
}

.esf-drawer__close span,
.esf-drawer__close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 15px;
    height: 1.5px;
    background: var(--esf-c-ink);
}

.esf-drawer__close span {
    transform: translate(-50%, -50%) rotate(45deg);
}

.esf-drawer__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.esf-drawer__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 26px;
}

.esf-line {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--esf-c-line);
}

.esf-line:last-child {
    border-bottom: 0;
}

.esf-line__media {
    background: var(--esf-c-shell);
    aspect-ratio: 877 / 1563;
    overflow: hidden;
}

.esf-line__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.esf-line__name {
    margin: 0 0 4px;
    font-family: var(--esf-c-serif);
    font-size: 19px;
    line-height: 1.25;
    color: var(--esf-c-ink);
}

.esf-line__meta {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--esf-c-muted);
}

.esf-line__price {
    margin: 0 0 10px;
    font-family: var(--esf-c-serif);
    font-size: 17px;
    color: var(--esf-c-ink);
}

.esf-line__remove {
    border: 0;
    padding: 0;
    background: none;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--esf-c-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.esf-line__remove:hover {
    color: var(--esf-c-ink);
}

.esf-drawer__foot {
    flex: 0 0 auto;
    padding: 22px 26px 26px;
    border-top: 1px solid var(--esf-c-line);
    background: var(--esf-c-paper);
}

.esf-drawer__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--esf-c-muted);
}

.esf-drawer__row strong {
    font-family: var(--esf-c-serif);
    font-size: 20px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--esf-c-ink);
    font-weight: 400;
}

.esf-drawer__row--muted {
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
}

.esf-drawer__cta {
    display: block;
    margin-top: 14px;
    padding: 17px 24px;
    background: var(--esf-c-ink);
    border: 1px solid var(--esf-c-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.esf-drawer__cta:hover {
    background: var(--esf-c-paper);
    color: var(--esf-c-ink);
}

.esf-drawer__note {
    margin: 12px 0 0;
    font-size: 12px;
    text-align: center;
    color: var(--esf-c-muted);
}

.esf-drawer__empty {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 30px;
}

.esf-drawer__empty-title {
    margin: 0 0 8px;
    font-family: var(--esf-c-serif);
    font-size: 24px;
    color: var(--esf-c-ink);
}

.esf-drawer__empty-note {
    margin: 0 0 22px;
    max-width: 260px;
    font-size: 14px;
    color: var(--esf-c-muted);
}

.esf-drawer__ghost {
    display: inline-block;
    padding: 13px 28px;
    border: 1px solid var(--esf-c-ink);
    color: var(--esf-c-ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
}

.esf-drawer__ghost:hover {
    background: var(--esf-c-ink);
    color: #fff;
}

body.esf-drawer-open {
    overflow: hidden;
}

/* =========================================================
   Checkout
   ========================================================= */

.esf-kyoto-checkout .woocommerce {
    max-width: 940px;
    margin: 0 auto;
    font-family: var(--esf-c-sans);
    color: var(--esf-c-body);
}

.esf-checkout-intro {
    max-width: 940px;
    margin: 0 auto 34px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--esf-c-line);
}

.esf-checkout-intro__eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--esf-c-muted);
}

.esf-checkout-intro__title {
    margin: 0 0 10px;
    font-family: var(--esf-c-serif);
    font-weight: 400;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.1;
    color: var(--esf-c-ink);
}

.esf-checkout-intro__note {
    margin: 0;
    max-width: 520px;
    font-size: 15px;
    color: var(--esf-c-muted);
}

.esf-kyoto-checkout h3,
.esf-kyoto-checkout #order_review_heading {
    font-family: var(--esf-c-serif);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--esf-c-ink);
    margin: 0 0 18px;
    font-family: var(--esf-c-sans);
}

.esf-kyoto-checkout .woocommerce-billing-fields h3 {
    margin-bottom: 20px;
}

.esf-kyoto-checkout .form-row {
    padding: 0;
    margin: 0 0 16px;
}

.esf-kyoto-checkout .form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--esf-c-muted);
}

.esf-kyoto-checkout .form-row .required {
    color: var(--esf-c-ink);
    text-decoration: none;
}

.esf-kyoto-checkout .form-row input.input-text,
.esf-kyoto-checkout .form-row textarea,
.esf-kyoto-checkout .select2-container .select2-selection--single,
.esf-kyoto-checkout .form-row select {
    width: 100%;
    height: auto;
    padding: 14px 16px;
    border: 1px solid var(--esf-c-line);
    border-radius: 0;
    background: var(--esf-c-paper);
    font-family: var(--esf-c-sans);
    font-size: 15px;
    color: var(--esf-c-ink);
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.esf-kyoto-checkout .form-row input.input-text:focus,
.esf-kyoto-checkout .form-row select:focus {
    border-color: var(--esf-c-ink);
    outline: none;
}

.esf-kyoto-checkout .form-row .description {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--esf-c-muted);
}

.esf-kyoto-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.4;
    padding: 0;
    color: var(--esf-c-ink);
}

.esf-kyoto-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 12px;
}

.esf-kyoto-checkout .woocommerce-checkout-review-order {
    margin-top: 34px;
    padding: 26px;
    background: var(--esf-c-shell);
}

.esf-kyoto-checkout .woocommerce-checkout-review-order-table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.esf-kyoto-checkout .woocommerce-checkout-review-order-table th,
.esf-kyoto-checkout .woocommerce-checkout-review-order-table td {
    border: 0;
    border-bottom: 1px solid var(--esf-c-line);
    padding: 12px 0;
    font-size: 14px;
    text-align: left;
}

.esf-kyoto-checkout .woocommerce-checkout-review-order-table td:last-child,
.esf-kyoto-checkout .woocommerce-checkout-review-order-table th:last-child {
    text-align: right;
}

.esf-kyoto-checkout .woocommerce-checkout-review-order-table thead th {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--esf-c-muted);
    font-weight: 600;
}

.esf-kyoto-checkout .order-total th,
.esf-kyoto-checkout .order-total td {
    border-bottom: 0;
    font-family: var(--esf-c-serif);
    font-size: 19px;
}

.esf-kyoto-checkout .order-total .woocommerce-Price-amount {
    font-weight: 400;
}

.esf-kyoto-checkout #payment {
    background: transparent;
    border-radius: 0;
}

.esf-kyoto-checkout #payment ul.payment_methods {
    border-bottom: 1px solid var(--esf-c-line);
    padding: 0 0 16px;
    margin: 0 0 18px;
    list-style: none;
}

.esf-kyoto-checkout #payment ul.payment_methods li {
    margin-bottom: 10px;
    font-size: 14px;
}

.esf-kyoto-checkout #payment div.payment_box {
    background: var(--esf-c-paper);
    border: 1px solid var(--esf-c-line);
    font-size: 14px;
    color: var(--esf-c-body);
}

.esf-kyoto-checkout #payment div.payment_box::before {
    display: none;
}

.esf-kyoto-checkout #place_order,
.esf-kyoto-checkout .woocommerce #payment #place_order {
    width: 100%;
    padding: 18px 24px;
    border: 1px solid var(--esf-c-ink);
    border-radius: 0;
    background: var(--esf-c-ink);
    color: #fff;
    font-family: var(--esf-c-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}

.esf-kyoto-checkout #place_order:hover {
    background: var(--esf-c-paper);
    color: var(--esf-c-ink);
}

.esf-kyoto-checkout .woocommerce-privacy-policy-text,
.esf-kyoto-checkout .woocommerce-terms-and-conditions-wrapper {
    font-size: 12px;
    color: var(--esf-c-muted);
}

.esf-kyoto-checkout .woocommerce-form-coupon-toggle,
.esf-kyoto-checkout .woocommerce-form-login-toggle {
    margin-bottom: 22px;
    font-size: 13px;
}

.esf-kyoto-checkout .woocommerce-info,
.esf-kyoto-checkout .woocommerce-message {
    border-top-color: var(--esf-c-ink);
    background: var(--esf-c-shell);
    font-size: 14px;
}

.esf-kyoto-checkout .woocommerce-info::before,
.esf-kyoto-checkout .woocommerce-message::before {
    color: var(--esf-c-ink);
}

/* =========================================================
   Order received
   ========================================================= */

.esf-receipt {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    max-width: 860px;
    margin: 0 auto 40px;
    padding: 32px;
    background: var(--esf-c-shell);
    font-family: var(--esf-c-sans);
}

.esf-receipt__media {
    aspect-ratio: 877 / 1563;
    overflow: hidden;
    background: var(--esf-c-paper);
}

.esf-receipt__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.esf-receipt__eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--esf-c-muted);
}

.esf-receipt__copy h2 {
    margin: 0 0 12px;
    font-family: var(--esf-c-serif);
    font-weight: 400;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    color: var(--esf-c-ink);
}

.esf-receipt__note {
    margin: 0 0 22px;
    font-size: 15px;
    color: var(--esf-c-body);
}

.esf-receipt__button {
    display: inline-block;
    padding: 16px 34px;
    background: var(--esf-c-ink);
    border: 1px solid var(--esf-c-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.esf-receipt__button:hover {
    background: transparent;
    color: var(--esf-c-ink);
}

.esf-receipt__link {
    margin: 16px 0 0;
    font-size: 13px;
}

.esf-receipt__link a {
    color: var(--esf-c-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--esf-c-line);
}

.esf-receipt__link a:hover {
    color: var(--esf-c-ink);
    border-bottom-color: var(--esf-c-ink);
}

.esf-kyoto-thankyou {
    margin-top: 12px;
    font-style: italic;
    color: var(--esf-c-muted);
}

/* =========================================================
   My Account
   ========================================================= */

.esf-kyoto-account .woocommerce {
    max-width: 1120px;
    margin: 0 auto;
    font-family: var(--esf-c-sans);
    color: var(--esf-c-body);
}

.esf-account-masthead {
    margin-bottom: 34px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--esf-c-line);
}

.esf-account-masthead__eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--esf-c-muted);
}

.esf-account-masthead__title {
    margin: 0 0 8px;
    font-family: var(--esf-c-serif);
    font-weight: 400;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    color: var(--esf-c-ink);
}

.esf-account-masthead__note {
    margin: 0;
    font-size: 15px;
    color: var(--esf-c-muted);
}

.esf-kyoto-account .woocommerce-MyAccount-navigation {
    width: 24%;
    float: left;
}

.esf-kyoto-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--esf-c-line);
}

.esf-kyoto-account .woocommerce-MyAccount-navigation li {
    margin: 0;
    border-bottom: 1px solid var(--esf-c-line);
}

.esf-kyoto-account .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 14px 0;
    font-family: var(--esf-c-serif);
    font-size: 17px;
    color: var(--esf-c-muted);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.esf-kyoto-account .woocommerce-MyAccount-navigation li a:hover {
    color: var(--esf-c-ink);
    padding-left: 6px;
}

.esf-kyoto-account .woocommerce-MyAccount-navigation li.is-active a {
    color: var(--esf-c-ink);
}

.esf-kyoto-account .woocommerce-MyAccount-content {
    width: 70%;
    float: right;
    font-size: 15px;
}

.esf-kyoto-account .woocommerce-MyAccount-content > p {
    color: var(--esf-c-body);
}

.esf-kyoto-account .woocommerce-MyAccount-content > p a,
.esf-kyoto-account .woocommerce-MyAccount-content .shop_table a,
.esf-kyoto-account .woocommerce-MyAccount-content fieldset a {
    color: var(--esf-c-ink);
}

/* Dashboard cards */

.esf-account-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 0;
}

.esf-account-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    background: var(--esf-c-shell);
    text-decoration: none;
    transition: background 0.2s ease;
}

.esf-account-card:hover {
    background: #f1eee8;
}

.esf-account-card__eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--esf-c-muted);
}

.esf-account-card__figure {
    font-family: var(--esf-c-serif);
    font-size: 40px;
    line-height: 1;
    color: var(--esf-c-ink);
}

.esf-account-card__label {
    font-size: 13px;
    color: var(--esf-c-body);
}

.esf-account-card--feature {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.esf-account-card__media {
    flex: 0 0 74px;
    aspect-ratio: 877 / 1563;
    overflow: hidden;
    background: var(--esf-c-paper);
}

.esf-account-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.esf-account-card__copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Downloads library */

.esf-library {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.esf-library__item {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--esf-c-line);
    background: var(--esf-c-paper);
}

.esf-library__media {
    aspect-ratio: 877 / 1563;
    background: var(--esf-c-shell);
    overflow: hidden;
}

.esf-library__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.esf-library__eyebrow {
    margin: 0 0 6px;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--esf-c-muted);
}

.esf-library__name {
    margin: 0 0 8px;
    font-family: var(--esf-c-serif);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.15;
    color: var(--esf-c-ink);
}

.esf-library__meta {
    margin: 0 0 16px;
    font-size: 12px;
    color: var(--esf-c-muted);
}

.esf-library__button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--esf-c-ink);
    border: 1px solid var(--esf-c-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.esf-kyoto-account .woocommerce-MyAccount-content .esf-library__button {
    color: #fff;
}

.esf-library__button:hover,
.esf-kyoto-account .woocommerce-MyAccount-content .esf-library__button:hover {
    background: var(--esf-c-paper);
    color: var(--esf-c-ink);
}

.esf-library-empty {
    padding: 48px 32px;
    background: var(--esf-c-shell);
    text-align: center;
}

.esf-library-empty__title {
    margin: 0 0 8px;
    font-family: var(--esf-c-serif);
    font-size: 26px;
    color: var(--esf-c-ink);
}

.esf-library-empty__note {
    margin: 0 auto 22px;
    max-width: 380px;
    font-size: 14px;
    color: var(--esf-c-muted);
}

.esf-library-empty__button {
    display: inline-block;
    padding: 14px 30px;
    border: 1px solid var(--esf-c-ink);
    color: var(--esf-c-ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
}

.esf-kyoto-account .woocommerce-MyAccount-content .esf-library-empty__button {
    color: var(--esf-c-ink);
}

.esf-library-empty__button:hover,
.esf-kyoto-account .woocommerce-MyAccount-content .esf-library-empty__button:hover {
    background: var(--esf-c-ink);
    color: #fff;
}

/* Orders + forms inside account */

.esf-kyoto-account .woocommerce-orders-table,
.esf-kyoto-account .shop_table {
    border: 0;
    border-collapse: collapse;
    width: 100%;
}

.esf-kyoto-account .shop_table th,
.esf-kyoto-account .shop_table td {
    border: 0;
    border-bottom: 1px solid var(--esf-c-line);
    padding: 16px 12px 16px 0;
    font-size: 14px;
    text-align: left;
}

.esf-kyoto-account .shop_table thead th {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--esf-c-muted);
    font-weight: 600;
}

.esf-kyoto-account .woocommerce-button,
.esf-kyoto-account .button {
    display: inline-block;
    padding: 11px 22px;
    border: 1px solid var(--esf-c-ink);
    border-radius: 0;
    background: transparent;
    color: var(--esf-c-ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.esf-kyoto-account .woocommerce-button:hover,
.esf-kyoto-account .button:hover {
    background: var(--esf-c-ink);
    color: #fff;
}

.esf-kyoto-account .woocommerce-form-row input.input-text,
.esf-kyoto-account .woocommerce-EditAccountForm input.input-text,
.esf-kyoto-account .form-row input.input-text {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--esf-c-line);
    border-radius: 0;
    background: var(--esf-c-paper);
    font-size: 15px;
    color: var(--esf-c-ink);
}

.esf-kyoto-account fieldset {
    border: 1px solid var(--esf-c-line);
    padding: 20px;
    margin: 26px 0;
}

.esf-kyoto-account legend {
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--esf-c-muted);
}

/* Login / register */

.esf-kyoto-account .woocommerce-form-login,
.esf-kyoto-account .woocommerce-form-register {
    border: 1px solid var(--esf-c-line);
    border-radius: 0;
    padding: 28px;
}

.esf-kyoto-account h2 {
    font-family: var(--esf-c-serif);
    font-weight: 400;
    font-size: 26px;
    color: var(--esf-c-ink);
}

/* =========================================================
   Cart page (fallback when the drawer is bypassed)
   ========================================================= */

.esf-kyoto-cart-page .woocommerce {
    max-width: 940px;
    margin: 0 auto;
    font-family: var(--esf-c-sans);
}

.esf-kyoto-cart-page .shop_table {
    border: 0;
    border-collapse: collapse;
}

.esf-kyoto-cart-page .shop_table th,
.esf-kyoto-cart-page .shop_table td {
    border: 0;
    border-bottom: 1px solid var(--esf-c-line);
    padding: 18px 12px 18px 0;
}

.esf-kyoto-cart-page .checkout-button {
    display: block;
    padding: 17px 24px;
    background: var(--esf-c-ink);
    border: 1px solid var(--esf-c-ink);
    border-radius: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
    .esf-kyoto-account .woocommerce-MyAccount-navigation,
    .esf-kyoto-account .woocommerce-MyAccount-content {
        width: 100%;
        float: none;
    }

    .esf-kyoto-account .woocommerce-MyAccount-navigation {
        margin-bottom: 28px;
    }

    .esf-library {
        grid-template-columns: minmax(0, 1fr);
    }

    .esf-receipt {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 22px;
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .esf-drawer__shell {
        max-width: none;
    }

    .esf-drawer__head,
    .esf-drawer__foot {
        padding-left: 18px;
        padding-right: 18px;
    }

    .esf-drawer__body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .esf-account-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .esf-account-card--feature {
        flex-direction: column;
        align-items: flex-start;
    }

    .esf-account-card__media {
        flex-basis: auto;
        width: 74px;
    }

    .esf-receipt {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .esf-receipt__media {
        max-width: 160px;
        margin: 0 auto;
    }

    .esf-receipt__button {
        display: block;
    }

    .esf-library__item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .esf-library__name {
        font-size: 19px;
    }

    .esf-kyoto-checkout .form-row-first,
    .esf-kyoto-checkout .form-row-last {
        width: 100%;
        float: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .esf-drawer__shell,
    .esf-drawer__scrim {
        transition-duration: 0.01ms;
    }
}
