/* Trascriviamo – finestra di accesso/registrazione sulla scheda servizio */
.tr-login-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; }
.tr-login-cta__btn {
	display: inline-block; padding: 10px 22px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--tr-cta, #c4621a); color: #fff !important; font-size: 13px; font-weight: 700;
	letter-spacing: .6px; text-transform: uppercase; text-decoration: none !important; line-height: 1.4;
}
.tr-login-cta__btn:hover { background: var(--tr-cta-dark, #a9521a); }
.tr-login-cta__btn--ghost { background: #fff; color: var(--tr-ink, #1b2430) !important; border: 2px solid var(--tr-cta, #c4621a); padding: 8px 20px; }
.tr-login-cta__btn--ghost:hover { background: #fdf3ec; }
.wapf-upload-auth-required { font-weight: 600; }

.tr-lm { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 32, .55); }
.tr-lm[hidden] { display: none; }
.tr-lm__box { position: relative; width: min(520px, 100%); max-height: min(80vh, 640px); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: hidden; }
.tr-lm__head { padding: 16px 52px 12px 22px; border-bottom: 1px solid #e5e7eb; }
.tr-lm__title { margin: 0; font-size: 1.15rem; font-weight: 700; color: #1b2430; }
.tr-lm__intro { margin: 4px 0 0; font-size: .9rem; color: #4b5563; line-height: 1.45; }
.tr-lm__close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f3f4f6; color: #1b2430; font-size: 20px; line-height: 1; cursor: pointer; }
.tr-lm__close:hover { background: #e5e7eb; }
.tr-lm__frame { flex: 1 1 auto; width: 100%; height: 440px; min-height: 0; border: 0; background: #fff; }
.tr-lm__loading { padding: 40px 22px; text-align: center; color: #6b7280; }
@media (max-width: 600px) { .tr-lm { padding: 12px; } .tr-lm__box { width: 100%; max-height: 88vh; } .tr-lm__frame { height: 60vh; } }

/* la pagina "Il mio account" quando è dentro la finestra */
body.tr-modal-page .tr-hsearch, body.tr-modal-page #masthead, body.tr-modal-page .site-header,
body.tr-modal-page .site-footer, body.tr-modal-page .tr-footer, body.tr-modal-page #colophon,
body.tr-modal-page .page-title, body.tr-modal-page .entry-hero, body.tr-modal-page .kadence-breadcrumbs,
body.tr-modal-page #wpadminbar { display: none !important; }
body.tr-modal-page { padding-top: 0 !important; background: #fff; }
body.tr-modal-page .content-container, body.tr-modal-page .site-container { padding: 12px 16px !important; max-width: 100% !important; }
body.tr-modal-page .woocommerce-MyAccount-navigation { display: none; }

/* riquadro "serve un account" nel configuratore */
.tr-login-box { margin: 0 0 16px; padding: 14px 16px; border: 1px solid #f0c9a6; border-left: 4px solid var(--tr-cta, #c4621a); border-radius: 12px; background: #fdf3ec; }
.tr-login-box__title { margin: 0 0 4px; font-weight: 700; color: #1b2430; }
.tr-login-box__text { margin: 0; font-size: .9rem; color: #4b5563; line-height: 1.45; }
.tr-login-link { font-weight: 700; text-decoration: underline; color: var(--tr-cta, #c4621a); cursor: pointer; }

.tr-login-cta__btn--wide { display: block; text-align: center; }
body.tr-modal-page .woocommerce-form-login, body.tr-modal-page .woocommerce-form-register { max-width: 100%; }
