/* =========================================================================
   ToyotaLand — account, auth, ad submission
   ========================================================================= */

.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-error, .woocommerce-message, .woocommerce-info { list-style: none; margin: 0 0 18px; padding: 14px 18px; border-radius: 14px; font-size: 14px; }
.woocommerce-error { background: var(--tl-primary-50); color: var(--tl-primary-600); }
.woocommerce-message { background: var(--tl-success-50); color: var(--tl-success); }
.woocommerce-info { background: var(--tl-soft); }
.woocommerce-error li + li { margin-top: 4px; }

.tl-account { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 26px; align-items: start; }
.tl-account__side { position: sticky; top: calc(var(--tl-header-h) + 16px); display: grid; gap: 14px; padding: 18px; border-radius: 24px; background: var(--tl-soft); }
.tl-account__user { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; border-bottom: 1px solid var(--tl-line-strong); }
.tl-account__user strong { display: block; color: var(--tl-ink); }
.tl-account__user small { display: block; color: var(--tl-muted); font-size: 12px; direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.tl-account__nav ul { list-style: none; display: grid; gap: 4px; }
.tl-account__nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; font-weight: 700; font-size: 14px; color: var(--tl-text); }
.tl-account__nav a:hover { background: #fff; color: var(--tl-ink); }
.tl-account__nav .is-active a { background: #fff; color: var(--tl-primary); box-shadow: var(--tl-shadow-sm); }
.tl-account__nav .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--tl-muted); }
.tl-account__content { min-width: 0; display: grid; gap: 20px; }

.tl-acc-hello { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; border-radius: 24px; background: radial-gradient(120% 160% at 0% 0%, #4a0d10 0%, var(--tl-dark-2) 60%); color: #c4c4ca; }
.tl-acc-hello h2 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.tl-acc-hello p { margin: 0; font-size: 14px; max-width: 480px; }
.tl-acc-hello__art { width: 200px; color: #000; opacity: .5; flex-shrink: 0; }
.tl-acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tl-acc-stat { display: grid; gap: 2px; padding: 18px; border-radius: 20px; border: 1px solid var(--tl-line); background: #fff; transition: all .25s; }
.tl-acc-stat:hover { border-color: transparent; box-shadow: var(--tl-shadow); color: inherit; }
.tl-acc-stat__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tl-primary-50); color: var(--tl-primary); margin-bottom: 8px; }
.tl-acc-stat strong { font-size: 24px; color: var(--tl-ink); }
.tl-acc-stat span { color: var(--tl-muted); font-size: 13px; }
.tl-acc-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tl-acc-quick a, .tl-acc-quick button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 110px; border-radius: 20px; border: 1px dashed var(--tl-line-strong); background: var(--tl-soft-2); font-weight: 700; font-size: 13px; color: var(--tl-ink); transition: all .25s; }
.tl-acc-quick .tl-icon { color: var(--tl-primary); }
.tl-acc-quick a:hover, .tl-acc-quick button:hover { border-style: solid; border-color: var(--tl-primary); background: #fff; color: var(--tl-primary); }
.tl-acc-box { padding: 24px; border-radius: 24px; border: 1px solid var(--tl-line); background: #fff; }
.tl-acc-box__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tl-acc-box__head h3 { margin: 0; font-size: 18px; }
.tl-acc-box__head > a:not(.tl-btn) { color: var(--tl-primary); font-size: 13px; font-weight: 700; }
.tl-acc-list { list-style: none; display: grid; gap: 8px; }
.tl-acc-list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--tl-soft-2); }
.tl-acc-list li > div { flex: 1; min-width: 0; }
.tl-acc-list strong { display: block; color: var(--tl-ink); font-size: 14px; }
.tl-acc-list small { color: var(--tl-muted); font-size: 12px; }
.tl-acc-list__icon { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--tl-primary); }

.tl-ads { list-style: none; display: grid; gap: 10px; }
.tl-ad { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 18px; border: 1px solid var(--tl-line); transition: opacity .3s; }
.tl-ad.is-removing { opacity: 0; }
.tl-ad__media { flex-shrink: 0; position: relative; width: 96px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--tl-soft); }
.tl-ad__media img { width: 100%; height: 100%; object-fit: cover; }
.tl-ad__media .tl-ph { position: absolute; inset: 0; min-height: 0; }
.tl-ad__media .tl-ph svg { width: 26px; }
.tl-ad__body { flex: 1; min-width: 0; }
.tl-ad__body strong { display: block; color: var(--tl-ink); }
.tl-ad__body small { color: var(--tl-muted); font-size: 12px; }
.tl-ad__actions { display: flex; gap: 6px; }
.tl-ad__actions .tl-icon-btn { width: 38px; height: 38px; }

.tl-reqs { display: grid; gap: 10px; }
.tl-req { border-radius: 18px; border: 1px solid var(--tl-line); background: #fff; }
.tl-req summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px; cursor: pointer; }
.tl-req summary::-webkit-details-marker { display: none; }
.tl-req__title { flex: 1; min-width: 0; }
.tl-req__title strong { display: block; color: var(--tl-ink); font-size: 14px; }
.tl-req__title small { color: var(--tl-muted); font-size: 12px; }
.tl-req__chev { color: var(--tl-muted); transition: transform .25s; }
.tl-req[open] .tl-req__chev { transform: rotate(180deg); }
.tl-req__fields { margin: 0; padding: 4px 16px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.tl-req__fields > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--tl-line); font-size: 13px; }
.tl-req__fields dt { color: var(--tl-muted); }
.tl-req__fields dd { margin: 0; font-weight: 700; color: var(--tl-ink); text-align: left; }
.tl-req__reply { margin: 0 16px 16px; padding: 12px 14px; border-radius: 12px; background: var(--tl-success-50); color: var(--tl-success); font-size: 13px; }

/* Auth */
.tl-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1040px; margin: 10px auto; border-radius: 28px; overflow: hidden; border: 1px solid var(--tl-line); background: #fff; box-shadow: var(--tl-shadow); }
.tl-auth__art { position: relative; overflow: hidden; padding: 40px; background: radial-gradient(120% 120% at 100% 0%, #5a1215 0%, var(--tl-dark-2) 60%); color: #c4c4ca; display: flex; flex-direction: column; justify-content: space-between; }
.tl-auth__art .tl-logo { color: #fff; margin-bottom: 26px; }
.tl-auth__art h2 { color: #fff; font-size: 26px; line-height: 1.6; }
.tl-auth__art h2 span { color: #ff3b40; }
.tl-auth__art ul { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.tl-auth__art li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tl-auth__art li .tl-icon { color: #ff5a5f; }
.tl-auth__car { width: 90%; color: #000; opacity: .55; margin: 30px auto -40px; }
.tl-auth__forms { padding: 36px; display: grid; gap: 22px; align-content: start; }
.tl-auth__forms .tl-form { display: grid; gap: 14px; }
.tl-auth__row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.tl-auth__row a { color: var(--tl-primary); font-weight: 700; }
.tl-auth__terms { font-size: 12px; color: var(--tl-muted); text-align: center; margin: 0; }
.tl-auth__terms a { color: var(--tl-primary); }

/* Lost password & other Woo forms */
.woocommerce-ResetPassword, .woocommerce-form-row { display: grid; gap: 8px; }
.woocommerce-ResetPassword { max-width: 520px; margin: 0 auto; padding: 30px; border-radius: 24px; border: 1px solid var(--tl-line); }
.woocommerce form .form-row { margin-bottom: 14px; }
.woocommerce form .form-row label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.woocommerce form .input-text { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--tl-line-strong); border-radius: 12px; }
.woocommerce .button, .woocommerce button.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: var(--tl-r-pill); background: var(--tl-primary); color: #fff; font-weight: 700; }

/* Ad form */
.tl-adform { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.tl-adform__form { display: grid; gap: 18px; }
.tl-adform__card { border: 1px solid var(--tl-line); border-radius: 24px; padding: 24px; margin: 0; min-width: 0; background: #fff; }
.tl-adform__card legend { display: flex; align-items: center; gap: 10px; float: right; width: 100%; font-size: 17px; font-weight: 800; color: var(--tl-ink); margin-bottom: 18px; padding: 0; }
.tl-adform__card legend + * { clear: both; }
.tl-adform__card legend span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--tl-primary); color: #fff; font-size: 14px; }
.tl-adform__other { margin-top: 8px; }
.tl-adform__side { position: sticky; top: calc(var(--tl-header-h) + 16px); }
.tl-adform__submit { display: grid; gap: 10px; justify-items: start; }
.tl-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px 20px; border: 2px dashed var(--tl-line-strong); border-radius: 20px; background: var(--tl-soft-2); text-align: center; cursor: pointer; transition: all .2s; }
.tl-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tl-drop .tl-icon { color: var(--tl-primary); }
.tl-drop strong { color: var(--tl-ink); }
.tl-drop small { color: var(--tl-muted); font-size: 12px; }
.tl-drop.is-over, .tl-drop:hover { border-color: var(--tl-primary); background: var(--tl-primary-50); }
.tl-thumbs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.tl-thumbs:empty { display: none; }
.tl-thumbs li { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--tl-soft); }
.tl-thumbs li:first-child::after { content: "تصویر اصلی"; position: absolute; bottom: 6px; inset-inline-start: 6px; padding: 2px 8px; border-radius: 6px; background: var(--tl-primary); color: #fff; font-size: 10px; font-weight: 700; }
.tl-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.tl-thumbs button { position: absolute; top: 6px; inset-inline-end: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15,15,18,.7); color: #fff; display: grid; place-items: center; }
.tl-thumbs button:hover { background: var(--tl-primary); }

@media (max-width: 980px) {
	.tl-account { grid-template-columns: 1fr; }
	.tl-account__side { position: static; }
	.tl-account__nav ul { grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; }
	.tl-acc-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tl-auth { grid-template-columns: 1fr; }
	.tl-auth__art { display: none; }
	.tl-adform { grid-template-columns: 1fr; }
	.tl-adform__side { position: static; }
}

@media (max-width: 700px) {
	.tl-acc-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
	.tl-acc-stat { padding: 12px; }
	.tl-acc-stat__icon { width: 36px; height: 36px; }
	.tl-acc-hello { padding: 22px; }
	.tl-acc-hello__art { display: none; }
	.tl-acc-box { padding: 18px; }
	.tl-ad { flex-wrap: wrap; }
	.tl-ad__actions { width: 100%; justify-content: flex-end; }
	.tl-req__fields { grid-template-columns: 1fr; }
	.tl-auth__forms { padding: 22px; }
	.tl-adform__card { padding: 18px; }
}
