/*
 * Customer account (login, registration, account area). Not in the prototype: built from the
 * checkout's pieces (checkout-title, checkout-block, order-card, payment-choice) and its tokens.
 */

/* Header: the account button sits with the cart (hidden on small screens, where the menu has "Conta"). */
@media (width > 920px) { .main-nav .nav-account { display: none; } }

.account-page .checkout-form { display: grid; gap: 0; }
.account-page .checkout-block > p { color: #4e737f; margin: 0; font-size: .87rem; line-height: 1.7; }
.account-page .checkout-block > small { color: #69848e; font-size: .75rem; line-height: 1.5; }
.account-page .checkout-button { margin-top: 0; }
.account-page form { display: grid; }
.account-page .button-row { gap: 10px; display: grid; }

.account-link { color: var(--brand-dark, #075b74); cursor: pointer; background: 0 0; border: 0; border-bottom: 1px solid currentColor; justify-self: start; padding: 2px 0; font-size: .78rem; font-weight: 750; }
.account-link:hover { color: var(--brand); }

/* Aside: benefits for guests, navigation for customers. */
.account-aside { display: grid; gap: 18px; }
.account-aside .order-kicker { display: block; }
.account-aside h2 { margin: 0; font: 400 1.75rem/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.03em; }
.account-benefits { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.account-benefits li { color: #4e626a; grid-template-columns: 22px 1fr; align-items: start; gap: 10px; font-size: .84rem; line-height: 1.5; display: grid; }
.account-benefits svg { color: var(--brand); width: 18px; margin-top: 2px; }

.account-nav { border: 1px solid #d7e0e2; border-radius: 13px; overflow: hidden; display: grid; }
.account-nav button { color: #203640; cursor: pointer; text-align: left; background: #fff; border: 0; border-top: 1px solid #e2e8ea; grid-template-columns: 22px 1fr 16px; align-items: center; gap: 12px; min-height: 56px; padding: 0 15px; font-size: .84rem; font-weight: 750; display: grid; }
.account-nav button:first-child { border-top: 0; }
.account-nav button svg { color: var(--brand); width: 19px; }
.account-nav button svg:last-child { color: #9aa8ad; width: 15px; }
.account-nav button:hover { background: var(--brand-soft); }
.account-nav button[aria-current="page"] { background: var(--brand-soft); }
.account-logout { color: #5c6d74; cursor: pointer; background: 0 0; border: 0; justify-self: start; align-items: center; gap: 8px; padding: 4px 0; font-size: .78rem; font-weight: 750; display: inline-flex; }
.account-logout svg { width: 16px; }
.account-logout:hover { color: #b42318; }

/* Orders and subscriptions as rows, like the checkout's payment options. */
.account-list { border: 1px solid #d7e0e2; border-radius: 13px; overflow: hidden; display: grid; }
.account-row { color: #203640; cursor: pointer; text-align: left; background: #fff; border: 0; border-top: 1px solid #e2e8ea; grid-template-columns: 1fr auto 16px; align-items: center; gap: 14px; min-height: 72px; padding: 12px 15px; display: grid; }
.account-row:first-child { border-top: 0; }
.account-row:hover { background: #f7fbfb; }
.account-row > span { gap: 3px; display: grid; }
.account-row b { font-size: .86rem; }
.account-row small { color: #849095; font-size: .72rem; }
.account-row strong { text-align: right; gap: 4px; font-size: .86rem; display: grid; justify-items: end; }
.account-row > svg { color: #9aa8ad; width: 15px; }
div.account-row { cursor: default; grid-template-columns: 1fr auto; }

.account-status { color: #075b74; background: var(--brand-soft); border-radius: 999px; padding: 3px 9px; font-size: .66rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.account-status.is-warning { color: #8a5300; background: #fff3dc; }
.account-status.is-done { color: #1f6b3a; background: #e3f5e9; }
.account-status.is-muted { color: #5c6d74; background: #eef2f3; }

.account-empty { background: var(--brand-soft); border-radius: 13px; justify-items: start; gap: 12px; padding: 20px; display: grid; }
.account-empty p { color: #4e737f; margin: 0; font-size: .85rem; line-height: 1.6; }
.account-empty .button { width: auto; min-height: 46px; }

.account-address { background: var(--brand-soft); border-radius: 13px; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 75px; padding: 13px 15px; display: grid; }
.account-address > svg { color: var(--brand); }
.account-address span { gap: 2px; display: grid; }
.account-address b { font-size: .84rem; }
.account-address small { color: #6e7e84; font-size: .72rem; line-height: 1.5; }

.account-pagination { justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; display: flex; }
.account-pagination span { color: #718086; font-size: .74rem; }

@media (width <= 920px) {
  .account-aside { margin-top: 0; position: static; }
}

.account-page input[readonly] { color: #718086; background: #f5f8f9; }

/* Closing the account: the only red button of the site. */
.account-page .button.account-danger { color: #fff; background: #b42318; border-color: #b42318; }
.account-page .button.account-danger:hover { background: #8f1c13; border-color: #8f1c13; }

/* Notes the team sent to the customer, on the order page (WooCommerce's customer notes). */
.order-updates p { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #f3fafb; color: #3a6577; font-size: .86rem; line-height: 1.65; }
.order-updates p:last-child { margin-bottom: 0; }
.order-updates small { display: block; margin-bottom: 4px; color: #78919c; font-size: .7rem; font-weight: 700; }
