/*
 * Catania Calzature — my account (WooCommerce classic): login/registration, navigation, dashboard, orders, order page,
 * addresses.
 */
.cc-account-page .woocommerce { display: grid; gap: 24px; margin-top: 16px; }

/* Login and registration, as the large shops do it: on computers the two forms side by side with a thin line between
   them, on phones one at a time with the other's button under it (site.js). The page names the form to show first
   (data-cc-auth-current) and html.cc-js is set in <head>, so on phones the other one is hidden from the first paint;
   without JavaScript both show. */
.cc-auth { max-width: 440px; margin: 8px auto 0; }
.cc-auth__title { margin: 0 0 6px; font-size: var(--wp--preset--font-size--xxl); line-height: 1.15; }
.cc-auth__title:focus { outline: none; }
.cc-auth__lead { margin: 0 0 22px; color: var(--c-muted); }
.cc-auth .form-row { margin-bottom: 14px; }
.cc-auth__submit { width: 100%; }
.cc-auth__note { margin: 0 0 14px; color: var(--c-text); font-size: 14px; }
.cc-auth .woocommerce-privacy-policy-text p { margin: 0 0 16px; color: var(--c-muted); font-size: 13px; }
.cc-auth__guest { margin: 16px 0 0; font-size: 14px; text-align: center; }
.cc-auth__guest a { font-weight: 600; }
/* "Non hai un account?" between two thin lines, then the other form's button. */
.cc-auth__switch { margin-top: 28px; }
.cc-auth__or { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--c-muted); font-size: 14px; white-space: nowrap; }
.cc-auth__or::before, .cc-auth__or::after { content: ""; flex: 1; border-top: 1px solid var(--c-line); }
.cc-auth__other { width: 100%; }
html:not(.cc-js) .cc-auth__switch { display: none; }
@media (max-width: 959px) {
	.cc-js .cc-auth[data-cc-auth-current="login"] [data-cc-auth-panel="register"],
	.cc-js .cc-auth[data-cc-auth-current="register"] [data-cc-auth-panel="login"] { display: none; }
	html:not(.cc-js) .cc-auth__panel + .cc-auth__panel { margin-top: 40px; }
}
@media (min-width: 960px) {
	.cc-auth--split { max-width: 1000px; margin-top: 24px; }
	.cc-auth--split .cc-auth__main { display: grid; grid-template-columns: 1fr 1fr; }
	.cc-auth--split .cc-auth__panel { padding: 0 56px; }
	.cc-auth--split .cc-auth__panel + .cc-auth__panel { border-left: 1px solid var(--c-line); }
	.cc-auth--split .cc-auth__switch { display: none; }
}
/* Lost / new password (woocommerce/myaccount/form-*-password.php): the login page's column and fields. */
.cc-auth .lost_reset_password { margin: 0; }

/* Logged in. Every page opens with its title (on phones with "‹ Il mio account" above it); the account's sections are
   rows with an icon in the left column of one panel on computers (menu | page, a line between them). On phones the
   dashboard's boxes are the menu, and the other pages have the way back above the title. */
.cc-acc-nav ul { margin: 0; padding: 0; border-top: 1px solid var(--c-line); list-style: none; }
.cc-acc-nav li { border-bottom: 1px solid var(--c-line); }
.cc-acc-nav li a { display: flex; align-items: center; gap: 12px; min-height: 52px; color: var(--c-ink); font: 500 16px/1.3 var(--f-body); text-decoration: none !important; }
.cc-acc-nav li a > span { flex: 1; min-width: 0; }
.cc-acc-nav li a .i { flex: none; width: 20px; height: 20px; color: var(--c-primary); }
.cc-acc-nav li a .cc-acc-nav__go { color: var(--c-muted); }
.cc-acc-nav li a:hover { color: var(--c-primary-700); }
@media (max-width: 1023px) {
	.cc-acc-nav { display: none; }
}
@media (min-width: 1024px) {
	/* One panel: the menu on the left, the page on the right, a full-height line between them (drawn by the panel, so
	   it reaches the bottom whichever column is longer). */
	.cc-account-page .woocommerce:has(> .cc-acc-nav) {
		grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 0;
		border: 1px solid var(--c-line); border-radius: var(--r-lg);
		background: linear-gradient(var(--c-line), var(--c-line)) 260px 0 / 1px 100% no-repeat, #fff;
	}
	.cc-acc-nav { position: sticky; top: calc(var(--header-h) + 24px); padding: 20px 24px 24px; }
	.cc-acc-nav ul { border-top: 0; }
	.cc-acc-nav li:last-child { border-bottom: 0; }
	.cc-acc-nav li a { min-height: 48px; font-size: 15px; }
	.cc-acc-nav li a .cc-acc-nav__go { display: none; }
	.cc-acc-nav li a[aria-current="page"] { color: var(--c-primary-700); font-weight: 700; }
	.cc-account-page .woocommerce:has(> .cc-acc-nav) > .woocommerce-MyAccount-content { padding: 32px 40px 40px; }
}

/* Content. */
.woocommerce-MyAccount-content { min-width: 0; }
.cc-acc__back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: -10px 0 2px -6px; color: var(--c-primary-700); font-size: 15px; font-weight: 600; text-decoration: none !important; }
.cc-acc__back .i { width: 20px; height: 20px; }
@media (min-width: 1024px) { .cc-acc__back:not(.cc-acc__back--deep) { display: none; } }
.cc-acc__title { margin: 0 0 6px; font-size: var(--wp--preset--font-size--xxl); line-height: 1.15; }
/* Dashboard: WooCommerce's text under the greeting ("Non sei …? Esci", what the account is for, with its links). */
.cc-acc__who { margin: 0; color: var(--c-muted); font-size: 14px; }
.cc-acc__who a { font-weight: 600; }
.cc-acc__lead { max-width: 62ch; margin: 16px 0 0; color: var(--c-text); font-size: 16px; line-height: 1.6; }
.cc-acc__lead a { font-weight: 600; }
.woocommerce-MyAccount-content form > h2:empty { display: none; }
.woocommerce-MyAccount-content .woocommerce-address-fields { margin-top: 20px; }
/* Dashboard: a box for each section of the menu (on phones they are the menu). */
.cc-acc-tiles { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.cc-acc-tile { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: #fff; color: var(--c-ink); text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.cc-acc-tile:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-1); }
.cc-acc-tile .cc-acc-tile__icon { flex: none; width: 24px; height: 24px; color: var(--c-primary); }
.cc-acc-tile__text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.cc-acc-tile__text strong { font-size: 16px; font-weight: 600; line-height: 1.3; }
.cc-acc-tile__text span { display: -webkit-box; overflow: hidden; color: var(--c-muted); font-size: 14px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cc-acc-tile .cc-acc-tile__go { flex: none; width: 20px; height: 20px; color: var(--c-muted); }
@media (min-width: 640px) { .cc-acc-tiles { grid-template-columns: 1fr 1fr; } }

/* Orders: the filter (underlined, like the shop's tabs), then one card per order. */
.cc-ofilter { display: flex; gap: 2px; margin: 12px 0 20px; overflow-x: auto; border-bottom: 1px solid var(--c-line); scrollbar-width: none; }
.cc-ofilter::-webkit-scrollbar { display: none; }
.cc-ofilter a { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--c-muted); font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none !important; }
.cc-ofilter a:first-child { padding-left: 0; }
.cc-ofilter a:hover, .cc-ofilter a[aria-current="page"] { color: var(--c-ink); }
.cc-ofilter a[aria-current="page"]::after { content: ""; position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px; border-radius: 2px; background: var(--c-ink); }
.cc-ofilter a:first-child[aria-current="page"]::after { left: 0; }
.cc-ocards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cc-ocard { display: grid; grid-template-rows: auto auto auto 1fr; gap: 12px; height: 100%; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: #fff; }
.cc-ocard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cc-ocard__num { margin: 0; font: 600 16px/1.3 var(--f-body); }
.cc-ocard__num a { color: var(--c-ink); text-decoration: none; }
.cc-ocard__num a:hover { text-decoration: underline; }
.cc-ocard__meta { margin: 2px 0 0; color: var(--c-muted); font-size: 14px; }
.cc-ocard__meta .amount { color: inherit; font-weight: 400; }
.cc-ocard__thumbs { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cc-ocard__thumbs li { width: 64px; height: 64px; overflow: hidden; border: 1px solid var(--c-line); border-radius: 0; background: #fff; }
.cc-ocard__thumbs img { display: block; width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.cc-ocard__more { display: grid; place-items: center; width: 100%; height: 100%; background: var(--c-soft); color: var(--c-ink); font-size: 15px; font-weight: 600; }
.cc-ocard__note { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--c-text); font-size: 14px; }
.cc-ocard__note .i { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--c-primary); }
.cc-ocard__actions { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 14px; }
.cc-ocard__again { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--c-primary-700); font-size: 14px; font-weight: 600; text-decoration: none !important; }
.cc-ocard__again .i { width: 18px; height: 18px; }
.cc-ocard__again:hover { text-decoration: underline !important; }
@media (min-width: 1200px) { .cc-ocards { grid-template-columns: 1fr 1fr; } }
/* Status: a dot in the status's colour, then its name. */
.cc-ostatus { --tone: var(--c-muted); display: inline-flex; flex: none; align-items: center; gap: 6px; color: var(--c-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.cc-ostatus::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.cc-ostatus--waiting { --tone: var(--c-warning); }
.cc-ostatus--working { --tone: var(--c-primary); }
.cc-ostatus--shipped { --tone: var(--c-accent-700); }
.cc-ostatus--done { --tone: var(--c-success); }
.cc-ostatus--error { --tone: var(--c-danger); }
.cc-opager { display: flex; gap: 12px; margin-top: 20px; }
.cc-opager .woocommerce-button--next { margin-left: auto; }

/* Order page: its steps, the products with the totals, delivery and payment, the updates; sections under a line. */
.cc-order__lead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 20px; color: var(--c-muted); }
.cc-order { display: grid; gap: 24px; }
.cc-order__panel + .cc-order__panel, .cc-order > .woocommerce-shipment-tracking + .cc-order__panel { padding-top: 24px; border-top: 1px solid var(--c-line); }
.cc-order__title { margin: 0 0 14px; font-size: var(--wp--preset--font-size--lg); }
.cc-osteps { display: grid; margin: 0; padding: 0; list-style: none; }
.cc-osteps__step { position: relative; display: flex; gap: 12px; padding-bottom: 18px; }
.cc-osteps__step:last-child { padding-bottom: 0; }
.cc-osteps__step::before { content: ""; position: absolute; top: 28px; bottom: 2px; left: 12px; width: 2px; border-radius: 2px; background: var(--c-line); }
.cc-osteps__step:last-child::before { display: none; }
.cc-osteps__step.is-done::before { background: var(--c-success); }
.cc-osteps__dot { position: relative; z-index: 1; display: grid; flex: none; place-items: center; width: 26px; height: 26px; border: 2px solid var(--c-line-strong); border-radius: 50%; background: #fff; }
.cc-osteps__step.is-done .cc-osteps__dot { border-color: var(--c-success); background: var(--c-success); color: #fff; }
.cc-osteps__dot .i { width: 14px; height: 14px; stroke-width: 2.6; }
.cc-osteps__step.is-current .cc-osteps__dot { border-color: var(--c-primary); }
.cc-osteps__step.is-current .cc-osteps__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-primary); }
.cc-osteps__text { display: grid; gap: 2px; padding-top: 2px; }
.cc-osteps__text strong { color: var(--c-ink); font-weight: 600; line-height: 1.35; }
.cc-osteps__step.is-next .cc-osteps__text strong { color: var(--c-muted); font-weight: 500; }
.cc-osteps__text span { color: var(--c-muted); font-size: 13px; }
.cc-order__track { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md); background: var(--c-primary-50); color: var(--c-ink); font-size: 14px; }
.cc-order__track > .i { flex: none; width: 20px; height: 20px; color: var(--c-primary); }
.cc-order__track p { flex: 1 1 220px; margin: 0; }
.cc-olines { margin: 0; padding: 0; list-style: none; }
.cc-oline { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px 14px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.cc-oline:first-child { padding-top: 0; }
.cc-oline__img { display: block; width: 64px; height: 64px; overflow: hidden; border: 1px solid var(--c-line); border-radius: 0; background: #fff; }
.cc-oline__img img { display: block; width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.cc-oline__text { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.cc-oline__name { color: var(--c-ink); font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; }
a.cc-oline__name:hover { text-decoration: underline; }
.cc-oline .wc-item-meta { margin: 0; padding: 0; color: var(--c-muted); font-size: 13px; list-style: none; }
.cc-oline .wc-item-meta li { margin: 0; }
.cc-oline .wc-item-meta strong { font-weight: 500; }
.cc-oline .wc-item-meta p { display: inline; margin: 0; }
.cc-oline__qty { color: var(--c-muted); font-size: 13px; }
.cc-oline__price { align-self: start; color: var(--c-ink); font-weight: 600; white-space: nowrap; }
.cc-ototals { display: grid; gap: 8px; margin: 14px 0 0; }
.cc-ototals__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.cc-ototals dt { color: var(--c-text); }
.cc-ototals dd { margin: 0; color: var(--c-ink); text-align: right; }
.cc-ototals__row.is-total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--c-line); font: 600 18px/1.3 var(--f-head); }
.cc-ototals__row.is-total dt { color: var(--c-ink); }
.cc-ototals__row small { display: block; color: var(--c-muted); font: 400 12px/1.4 var(--f-body); }
.cc-order__note { margin: 14px 0 0; font-size: 14px; }
.cc-oinfo { display: grid; gap: 18px; margin: 0; }
.cc-oinfo dt { margin: 0 0 4px; color: var(--c-muted); font-size: 13px; }
.cc-oinfo dd { margin: 0; color: var(--c-ink); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
@media (min-width: 640px) { .cc-oinfo { grid-template-columns: 1fr 1fr; } }
.cc-order__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cc-order__actions:empty { display: none; }

/* Other WooCommerce tables of the account (downloads, payment methods). */
.woocommerce-MyAccount-content .shop_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce-MyAccount-content .shop_table :is(th, td) { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--c-line); text-align: left; }
.woocommerce-MyAccount-content .shop_table .button { min-height: 36px; margin: 2px; padding: 0 12px; border: 1px solid var(--c-line-strong); background: #fff; color: var(--c-ink); font-size: 13px; }

.woocommerce-MyAccount-content .woocommerce-Addresses { display: grid; gap: 16px; }
.woocommerce-MyAccount-content .woocommerce-Address { padding: 18px 20px; border-radius: var(--r-md); background: var(--c-soft); }
.woocommerce-MyAccount-content .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.woocommerce-MyAccount-content .woocommerce-Address-title h2 { margin: 0; font-size: var(--wp--preset--font-size--lg); }
.woocommerce-MyAccount-content .woocommerce-Address-title .edit { flex: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--c-line-strong); background: #fff; color: var(--c-ink); font-size: 14px; }
.woocommerce-MyAccount-content address { font-style: normal; line-height: 1.6; }
.cc-acc__intro { margin: 0 0 16px; color: var(--c-muted); }
@media (min-width: 768px) { .woocommerce-MyAccount-content .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
/* "Modifica password" and other groups: a section under a line, its title like the page's subtitles (no box inside
   the panel). */
.woocommerce-MyAccount-content fieldset { margin: 28px 0 8px; padding: 24px 0 0; border: 0; border-top: 1px solid var(--c-line); border-radius: 0; }
.woocommerce-MyAccount-content legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; color: var(--c-ink); font: 600 var(--wp--preset--font-size--lg)/1.3 var(--f-head); }
.woocommerce-MyAccount-content legend + * { clear: both; }

/* Account details form. */
.woocommerce-EditAccountForm .form-row em, .woocommerce-EditAccountForm #account_display_name_description { display: block; margin-top: 6px; color: var(--c-muted); font-size: 13px; font-style: normal; }

/* Account forms: names side by side, address lines like the checkout (CAP, città, provincia on one line). */
.woocommerce-MyAccount-content .cc-acc__title + * { margin-top: 12px; }
.woocommerce-EditAccountForm, .woocommerce-MyAccount-content .woocommerce-address-fields { max-width: 720px; }
.woocommerce-EditAccountForm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; }
.woocommerce-EditAccountForm > * { grid-column: 1 / -1; }
.woocommerce-EditAccountForm > .form-row-first { grid-column: 1; }
.woocommerce-EditAccountForm > .form-row-last { grid-column: 2; }
.woocommerce-EditAccountForm > .clear { display: none; }
.woocommerce .woocommerce-EditAccountForm > .form-row, .woocommerce .woocommerce-address-fields__field-wrapper > .form-row { display: block; width: auto; margin-right: 0; }
.woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 12px; }
.woocommerce-address-fields__field-wrapper > .form-row { grid-column: span 6; width: auto; margin: 0 0 12px; float: none; }
.woocommerce-address-fields__field-wrapper > :is(#billing_first_name_field, #billing_last_name_field, #shipping_first_name_field, #shipping_last_name_field, #billing_phone_field, #billing_email_field) { grid-column: span 3; }
.woocommerce-address-fields__field-wrapper > :is(#billing_postcode_field, #billing_city_field, #billing_state_field, #shipping_postcode_field, #shipping_city_field, #shipping_state_field) { grid-column: span 2; }
@media (max-width: 575px) {
	.woocommerce-address-fields__field-wrapper { grid-auto-flow: row dense; }
	.woocommerce-address-fields__field-wrapper > :is(#billing_postcode_field, #shipping_postcode_field, #billing_state_field, #shipping_state_field) { grid-column: span 3; }
	.woocommerce-address-fields__field-wrapper > :is(#billing_city_field, #shipping_city_field, #billing_phone_field, #billing_email_field) { grid-column: span 6; }
}
