/* odstopodpogodbe.si — My Account (my-account). The preview's rules (specs/landing-preview/screens-preview/preview-account-*.html,
   recipe build_account.py) on WooCommerce's markup; loaded after ewb-landing.css on the account's pages only (ewb-account.php).
   WooCommerce's own CSS stays for the other endpoints, so its floats and widths are undone here where the grid replaces them. */

.ewb-account .wp-block-post-content > .woocommerce { max-width: none; margin: 0; }

/* 1 · the account: crumbs, title, greeting, the grid nav | content */
.ewb-landing .acc { padding-block: 40px 72px; background: var(--paper-2); }
.ewb-landing .acc .crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.ewb-landing .acc .crumbs a { color: var(--muted); text-decoration: none; }
.ewb-landing .acc .crumbs a:hover { text-decoration: underline; }
.ewb-landing .acc h1 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); margin: 0 0 6px; }
.ewb-landing .acc .hello { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.ewb-landing .acc h1 + .acc-grid { margin-top: 28px; }
.ewb-landing .acc-grid { display: grid; gap: 20px; }
.ewb-landing .acc-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .ewb-landing .acc-grid { grid-template-columns: 232px 1fr; gap: 32px; align-items: start; }
  .ewb-landing .acc-grid .woocommerce-MyAccount-navigation { position: sticky; top: 92px; }
}

/* the menu: WooCommerce's list, an icon per entry; on phones one row that scrolls sideways, so the licence stays near the top */
.ewb-landing .acc-grid .woocommerce-MyAccount-navigation,
.ewb-landing .acc-grid .woocommerce-MyAccount-content { float: none; width: auto; margin: 0; }
.ewb-landing .woocommerce-MyAccount-navigation { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.ewb-landing .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ewb-landing .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border: 0; }
.ewb-landing .woocommerce-MyAccount-navigation li a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; line-height: 1.3; white-space: nowrap; }
.ewb-landing .woocommerce-MyAccount-navigation li a::before { content: ""; width: 18px; height: 18px; flex: none; background-color: currentColor; opacity: .55; -webkit-mask: var(--i, none) center / 18px 18px no-repeat; mask: var(--i, none) center / 18px 18px no-repeat; }
.ewb-landing .woocommerce-MyAccount-navigation li a:hover { background: var(--paper); }
/* WooCommerce's block-theme CSS underlines the active entry (".woocommerce-account … li.is-active a") */
.ewb-landing .woocommerce-MyAccount-navigation li.is-active a { background: var(--dark); color: var(--white); text-decoration: none; }
.ewb-landing .woocommerce-MyAccount-navigation li.is-active a::before { opacity: .9; }
.ewb-landing .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.ewb-landing .woocommerce-MyAccount-navigation-link--dashboard { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.ewb-landing .woocommerce-MyAccount-navigation-link--orders { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 8h6M9 12h6'/%3E%3C/svg%3E"); }
.ewb-landing .woocommerce-MyAccount-navigation-link--sublium-subscriptions { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 0 0-14.3-4.9L4 8'/%3E%3Cpath d='M4 4v4h4'/%3E%3Cpath d='M4 13a8 8 0 0 0 14.3 4.9L20 16'/%3E%3Cpath d='M20 20v-4h-4'/%3E%3C/svg%3E"); }
.ewb-landing .woocommerce-MyAccount-navigation-link--downloads { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E"); }
.ewb-landing .woocommerce-MyAccount-navigation-link--payment-methods { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18M7 15h4'/%3E%3C/svg%3E"); }
.ewb-landing .woocommerce-MyAccount-navigation-link--edit-account { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.ewb-landing .woocommerce-MyAccount-navigation-link--customer-logout { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4'/%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3C/svg%3E"); }
@media (max-width: 899px) {
  .ewb-landing .woocommerce-MyAccount-navigation { padding: 6px; overflow-x: auto; scrollbar-width: none; }
  .ewb-landing .woocommerce-MyAccount-navigation::-webkit-scrollbar { display: none; }
  .ewb-landing .woocommerce-MyAccount-navigation ul { display: flex; gap: 4px; width: max-content; }
  .ewb-landing .woocommerce-MyAccount-navigation li a { padding: 8px 12px; font-size: .9rem; }
  .ewb-landing .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account { margin: 0 0 0 4px; padding: 0 0 0 4px; border-top: 0; border-left: 1px solid var(--line); }
}

/* the other endpoints keep WooCommerce's markup; only the text size and the links follow the page */
.ewb-landing .woocommerce-MyAccount-content { font-size: 1rem; }
.ewb-landing .woocommerce-MyAccount-content a:not(.button):not(.wp-block-button__link) { color: var(--dark); }
/* WooCommerce's buttons ("Prikaži" in the orders, the downloads' links, the notices): the theme gives them a black ground; the
   page's outline button instead, so their text never sits dark on black */
.ewb-landing .woocommerce-MyAccount-content .button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 14px; border: 1.5px solid var(--dark); border-radius: 8px; background: var(--white); color: var(--dark); font: 600 .88rem/1.2 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; }
.ewb-landing .woocommerce-MyAccount-content .button:hover { background: var(--dark); color: var(--white); }
/* the orders, downloads and payment-method tables as a card */
.ewb-landing .woocommerce-MyAccount-content table.shop_table { width: 100%; margin: 0 0 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: .92rem; }
.ewb-landing .woocommerce-MyAccount-content table.shop_table th,
.ewb-landing .woocommerce-MyAccount-content table.shop_table td { padding: 12px 14px; border: 0; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ewb-landing .woocommerce-MyAccount-content table.shop_table thead th { border-top: 0; background: var(--paper); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ewb-landing .woocommerce-MyAccount-content table.shop_table tbody th { font-weight: 600; }
.ewb-landing .woocommerce-MyAccount-content .wc-block-components-notice-banner { margin: 0 0 16px; border-radius: var(--r); font-size: .9rem; align-items: center; }
/* the notice's own button: WooCommerce sets its padding to 0 !important, so the text sat on the border */
.ewb-landing .woocommerce-MyAccount-content .wc-block-components-notice-banner .button { padding: 6px 14px !important; height: auto; min-height: 34px; margin-left: 12px; float: right; }

/* 2 · the licence card */
.ewb-landing .lic { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px 22px; margin-bottom: 16px; box-shadow: 0 20px 50px -34px rgba(17,26,46,.35); overflow: hidden; }
.ewb-landing .lic::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.ewb-landing .lic .lic-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 18px; }
.ewb-landing .lic h2 { font-size: 1.3rem; line-height: 1.2; margin: 0 0 4px; }
.ewb-landing .lic .lic-sub { color: var(--muted); font-size: .9rem; }
.ewb-landing .lic .st { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--ok-tint); color: var(--ok); line-height: 1.2; white-space: nowrap; }
.ewb-landing .lic .st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.ewb-landing .lic .st.warn { background: var(--warn-tint); color: var(--warn); }
.ewb-landing .lic .st.warn::before { background: var(--warn); }
.ewb-landing .key { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; }
.ewb-landing .key code { font: 600 1rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: var(--dark); background: none; padding: 0; overflow-wrap: anywhere; }
.ewb-landing .key .kb { margin-left: auto; display: flex; gap: 8px; }
.ewb-landing .key .kb button { font: 600 .82rem/1.2 var(--body); color: var(--ink); border: 1px solid var(--line); background: var(--white); padding: 7px 12px; border-radius: 7px; cursor: pointer; }
.ewb-landing .key .kb button:hover { border-color: var(--dark); }
.ewb-landing .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 0 0 20px; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ewb-landing .facts li { margin: 0; padding: 12px 14px; font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.4; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.ewb-landing .facts li b { display: block; margin-bottom: 3px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ewb-landing .lic .acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ewb-landing .lic .acts .wp-block-button__link { min-height: 44px; padding: 10px 18px; font-size: .92rem; }
.ewb-landing .lic .acts .lnk { margin-left: auto; font-size: .86rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.ewb-landing .lic .acts .lnk:hover { color: var(--no); }

/* phones: a little less padding, the card's buttons full width, the cancel link under them */
@media (max-width: 639px) {
  .ewb-landing .lic { padding: 20px 18px 18px; }
  .ewb-landing .steps { padding: 18px; }
  .ewb-landing .lic .acts .wp-block-button, .ewb-landing .lic .acts .wp-block-button__link { width: 100%; }
  .ewb-landing .lic .acts .lnk { margin: 4px auto 0; }
}

/* 3 · the steps, the quick links, no licence */
.ewb-landing .steps { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; margin-bottom: 16px; }
.ewb-landing .steps h3 { font-size: 1.05rem; margin: 0 0 14px; }
.ewb-landing .steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; color: var(--ink); font-size: .92rem; line-height: 1.5; }
.ewb-landing .steps ol li { counter-increment: step; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; margin: 0; }
.ewb-landing .steps ol li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-tint); color: var(--dark); font: 700 .8rem/1 var(--body); }
.ewb-landing .steps.none p { margin-bottom: 14px; font-size: 1.05rem; }
.ewb-landing .quick { display: grid; gap: 12px; }
@media (min-width: 640px) { .ewb-landing .quick { grid-template-columns: repeat(3, 1fr); } }
.ewb-landing .quick > * { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.ewb-landing .quick > a:hover { border-color: var(--dark); }
.ewb-landing .quick > a b::after { content: " →"; color: var(--accent-2); }
.ewb-landing .quick b { display: block; font-family: var(--display); font-size: 1rem; margin-bottom: 3px; color: var(--dark); }
.ewb-landing .quick span { font-size: .85rem; color: var(--muted); }
.ewb-landing .quick span a { color: var(--dark); text-underline-offset: 3px; }

/* 4 · the login box, and WooCommerce's lost-password and reset forms in the same box */
.ewb-landing .login { padding-block: 56px 80px; background: var(--paper-2); }
.ewb-landing .login .box,
.ewb-account .wp-block-post-content > .woocommerce > form.lost_reset_password { max-width: 440px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 28px 24px; box-shadow: 0 20px 50px -30px rgba(17,26,46,.35); }
.ewb-account .wp-block-post-content > .woocommerce:has(> form.lost_reset_password) { padding: 56px 20px 80px; background: var(--paper-2); }
.ewb-landing .login form.login { border: 0; border-radius: 0; padding: 0; margin: 0; background: none; box-shadow: none; }
.ewb-landing .login h1 { font-size: 1.6rem; margin: 0 0 6px; }
.ewb-landing .login .lead { font-size: .95rem; margin-bottom: 18px; color: var(--muted); }
.ewb-landing .login label,
.ewb-account form.lost_reset_password label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.ewb-landing .login input[type="text"], .ewb-landing .login input[type="password"],
.ewb-account form.lost_reset_password input.input-text { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; font: inherit; font-size: 1rem; margin: 0 0 14px; background: var(--paper-2); color: var(--ink); }
.ewb-landing .login .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin: -4px 0 16px; }
.ewb-landing .login .row .remember { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; font-size: .85rem; color: var(--muted); }
.ewb-landing .login .row a { color: var(--ink); }
.ewb-landing .login .wp-block-buttons, .ewb-landing .login .wp-block-button, .ewb-landing .login .wp-block-button__link { width: 100%; }
.ewb-landing .login .note { font-size: .85rem; color: var(--muted); margin: 16px 0 0; text-align: center; }
.ewb-landing .login .note a { color: var(--ink); }
.ewb-landing .login .woocommerce-error, .ewb-landing .login .woocommerce-message, .ewb-landing .login .woocommerce-info { margin: 0 0 16px; font-size: .9rem; }
.ewb-account form.lost_reset_password p { font-size: .95rem; margin: 0 0 12px; }
/* the reset form's two fields: one under the other (WooCommerce floats them in halves, the long label wrapped), the eye on the field's middle */
.ewb-account form.lost_reset_password .form-row-first, .ewb-account form.lost_reset_password .form-row-last { float: none; width: 100%; }
.ewb-account form.lost_reset_password .password-input { display: block; margin: 0 0 14px; }
.ewb-account form.lost_reset_password .password-input input.input-text { margin: 0; padding-right: 44px; }
.ewb-account form.lost_reset_password .button { min-height: 46px; padding: 10px 20px; border-radius: var(--r); background: var(--dark); color: var(--white); border: 0; font: 600 1rem/1.2 var(--body); cursor: pointer; }
