:root{--lk-font-small:12px;--lk-font-norm:16px ;--lk-font-lg:18px;--lk-font-xl:22px;--lk-font-xxl:25px}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,sans-serif;max-width:100%;overflow-x:hidden}
.oforma-doc-wrap{max-width:1280px; margin:40px auto 80px;padding:0 20px}
.oforma-doc-inner{position:relative;max-width:1280px; }


/* Woo navigation */
.woocommerce-MyAccount-navigation ul{margin:0;padding:0;list-style:none}
.woocommerce-MyAccount-navigation li{margin:0}
.woocommerce-MyAccount-navigation li a{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;font-size:var(--lk-font-norm);border-left:2px solid transparent;color:#374151;text-decoration:none}

.woocommerce-MyAccount-navigation li a:hover{background:#f3f4f6}
.woocommerce-MyAccount-navigation li.is-active a{background:#eef4ff;color:#1f6bff;border-left-color:#1f6bff;font-weight:500}

/* Ломаем дефолтную 30/70-сетку Woo */
.woocommerce-account .woocommerce-MyAccount-navigation{float:none;width:100%}

/* подгоняем стили */
.woocommerce-account .woocommerce-MyAccount-content h2{font-size:var(--lk-font-lg);font-weight:600;margin:0 0 16px;color:#111827}
.woocommerce-account .woocommerce-MyAccount-content p{font-size:var(--lk-font-small);color:#4b5563;margin:0 0 12px} 
.woocommerce-account .woocommerce-MyAccount-content .button{border-radius:999px;font-size:var(--lk-font-small);padding:6px 14px}
.woocommerce-account .woocommerce-message,.woocommerce-account .woocommerce-error,.woocommerce-account .woocommerce-info{border-radius:12px;font-size:var(--lk-font-small)}

.woocommerce-account .woocommerce-MyAccount-content form.edit-account .form-row{margin-bottom:12px}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account label{display:block;font-size:var(--lk-font-small);color:#4b5563;margin-bottom:4px}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account input.input-text{width:100%;border-radius:10px;border:1px solid #e5e7eb;padding:7px 10px;font-size:var(--lk-font-small)}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account fieldset{border:0;padding:0;margin:16px 0 0}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account legend{font-size:var(--lk-font-small);font-weight:600;margin-bottom:8px}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account .woocommerce-Button{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;border:1px solid #2563eb;background:#2563eb;color:#ffffff;font-size:var(--lk-font-small);padding:8px 18px;cursor:pointer}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account .woocommerce-Button:hover{background:#1d4ed8;border-color:#1d4ed8}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table{width:100%;border-collapse:collapse;font-size:var(--lk-font-small);margin-top:8px}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table th,.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td{padding:8px 10px;border-bottom:1px solid #e5e7eb;text-align:left}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table th{font-weight:500;font-size:var(--lk-font-small);color:#6b7280}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td{color:#111827}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td a.button{border-radius:999px;padding:6px 12px;font-size:var(--lk-font-small)}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__row--status-completed td{background:#f0fdf4}


/* Oforma меню */
.oforma-lk-nav{display:flex;flex-direction:column}
.oforma-lk-nav__item{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;font-size:var(--lk-font-norm);color:#374151;text-decoration:none;border-left:2px solid transparent}
.oforma-lk-nav__item:hover{background:#f3f4f6}
.oforma-lk-nav__item--active{background:#eef4ff;color:#1d4ed8;border-left:2px solid #3b82f6}

.oforma-profile{max-width:720px;margin:0 auto;padding:24px 24px 28px;background:#fff;border-radius:16px;box-shadow:0 10px 25px rgba(15,23,42,.05)}
.oforma-profile__title{margin:0 0 20px;font-size:var(--lk-font-xl);font-weight:600;color:#111827}
.oforma-profile__form{display:block}
.oforma-profile__row{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:12px;align-items:center;margin-bottom:12px}
@media(max-width:768px){.oforma-profile__row{grid-template-columns:1fr;align-items:flex-start}}
.oforma-profile__row label{font-size:var(--lk-font-norm);color:#4b5563}
.oforma-profile__row input[type=text],.oforma-profile__row input[type=number],.oforma-profile__row input[type=email],.oforma-profile__row input[type=tel]{width:100%;padding:8px 10px;border-radius:10px;border:1px solid #d1d5db;font-size:var(--lk-font-norm);background:#f9fafb}
.oforma-profile__row input[type=text]:focus,.oforma-profile__row input[type=number]:focus,.oforma-profile__row input[type=email]:focus,.oforma-profile__row input[type=tel]:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 1px rgba(37,99,235,.3);background:#fff}

.oforma-profile__row textarea{width:100%;padding:8px 10px;border-radius:10px;border:1px solid #d1d5db;font-size:var(--lk-font-norm);background:#f9fafb}


.oforma-profile__submit{margin-top:16px;display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;border-radius:9999px;border:none;background:#2563eb !important;color:#fff;font-size:var(--lk-font-norm);font-weight:500;cursor:pointer;transition:background .15s ease,transform .1s ease,box-shadow .1s ease;box-shadow:0 8px 18px rgba(37,99,235,.25)}
.oforma-profile__submit:hover{background:#1d4ed8;transform:translateY(-1px);box-shadow:0 10px 22px rgba(37,99,235,.28)}
.oforma-profile__submit:active{transform:translateY(0);box-shadow:0 6px 14px rgba(37,99,235,.22)}

.oforma-docs-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 20px 0}
.oforma-docs-tabs__btn{display:inline-flex;align-items:center;justify-content:center;padding:9px 22px;border-radius:999px;border:1px solid #e5e7eb;font-size:var(--lk-font-small);color:#fff;background:#222;text-decoration:none;cursor:pointer}
.oforma-docs-tabs__btn--active{border-color:#000;color:#fff;background:#000}
.oforma-docs-tabs__btn:hover{background-color:#333;color:#fff;border:1px solid #333}


.oforma-docs__block{margin-bottom:28px}
.oforma-docs__block-title{margin:0 0 12px;font-size:var(--lk-font-lg);font-weight:600;color:#111827}
.oforma-docs__notice{margin-bottom:12px;padding:8px 10px;border-radius:8px;font-size:var(--lk-font-small)}
.oforma-docs__notice--ok{background:#ecfdf3;color:#166534}
.oforma-docs__notice--error{background:#fef2f2;color:#b91c1c}


.woocommerce-account .woocommerce-MyAccount-content{float:none;width:100%;margin:0;max-width:100%;min-width:0;overflow-x:visible}
.oforma-docs{margin-top:8px;width:100%;max-width:100%;border-radius:12px;border:1px solid #e5e7eb;background:#fff}
.oforma-docs__scroll{width:100%;max-width:100%}
.oforma-docs__table thead{background:#f9fafb}
.oforma-docs__table th,.oforma-docs__table td{padding:8px 10px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:middle;font-size:var(--lk-font-small)}
.oforma-docs__table th:first-child,.oforma-docs__table td:first-child{padding-left:14px}
.oforma-docs__table th:last-child,.oforma-docs__table td:last-child{padding-right:14px}
.oforma-docs__table th{font-weight:600;color:#4b5563}
.oforma-docs__table tbody tr:nth-child(even){background:#f9fafb}
.oforma-docs__table tbody tr:hover{background:#eff6ff}
.oforma-docs__table td:nth-child(3){max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oforma-docs__table td:last-child{white-space:normal}
.oforma-docs__table td:last-child a{display:inline-block;margin-right:6px}
.oforma-docs__table a{text-decoration:none;border-bottom:1px dashed currentColor;font-size:var(--lk-font-small)}
.oforma-docs__table a:hover{border-bottom-style:solid}
@media(max-width:767.98px){.oforma-docs{border-radius:10px}.oforma-docs__table th,.oforma-docs__table td{padding:6px 8px}}


/*Таблица Истории
.oforma-docs{margin-top:8px;width:100%;max-width:100%;border-radius:12px;border:1px solid #e5e7eb;background:#fff}
.oforma-docs__scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.oforma-docs__scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.oforma-docs__table td:last-child{white-space:normal}
.oforma-docs__table td:last-child a{display:inline-block;margin-right:6px}
.oforma-docs__table{width:100%;min-width:720px;border-collapse:collapse;font-size:var(--lk-font-small);white-space:nowrap}
.oforma-docs__table-wrap .oforma-docs__table{min-width:720px}
.oforma-docs__table thead{background:#f9fafb}
.oforma-docs__table th,.oforma-docs__table td{padding:8px 10px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:middle;white-space:nowrap}
.oforma-docs__table th:first-child,.oforma-docs__table td:first-child{padding-left:14px}
.oforma-docs__table th:last-child,.oforma-docs__table td:last-child{padding-right:14px}
.oforma-docs__table th{font-weight:600;color:#4b5563}
.oforma-docs__table tbody tr:nth-child(even){background:#f9fafb}
.oforma-docs__table tbody tr:hover{background:#eff6ff}
.oforma-docs__table td:nth-child(3){max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oforma-docs__table a{text-decoration:none;border-bottom:1px dashed currentColor;font-size:var(--lk-font-small)}
.oforma-docs__table a:hover{border-bottom-style:solid}

@media(max-width:768px){.oforma-docs{border-radius:10px}.oforma-docs__table{min-width:600px;font-size:var(--lk-font-small)}.oforma-docs__table th,.oforma-docs__table td{padding:6px 8px}.oforma-docs__table td:nth-child(3){max-width:180px}}

*/


/* Десктоп: колонка "Объект" — обрезка и градиент справа */
@media (min-width:1024px){
.oforma-docs__block table{table-layout:fixed}
.oforma-docs__block table th:nth-child(3),
.oforma-docs__block table td:nth-child(3){position:relative;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:32px}
.oforma-docs__block table th:nth-child(3)::after,
.oforma-docs__block table td:nth-child(3)::after{content:"";position:absolute;top:0;right:0;width:32px;height:100%;background:linear-gradient(to right,rgba(255,255,255,0),#ffffff)}
}
/* Мобила: скрываем колонку "Объект", чтобы не было горизонтальной прокрутки */
@media (max-width:767.98px){
.oforma-docs__block table th:nth-child(3),
.oforma-docs__block table td:nth-child(3){display:none}
}

/*Формы*/

.of-result a.btn1{background-color:#06bf0a;padding:3px 7px;border-radius:20px;color:#fff;text-decoration:none;text-transform:uppercase}
.of-result a.btn1:hover{background-color:#0da711}
.of-result a.btn2{background-color:#444;padding:3px 7px;border-radius:20px;color:#fff;text-decoration:none;text-transform:uppercase}
.of-result a.btn2:hover{background-color:#222}
.of-result p{line-height:27px;font-weight:500;font-size:var(--lk-font-norm)}
.of-result{background-color:#f7f7f7;padding:15px 10px;border-radius:10px}

.oforma-docs__notice--info{background-color:#ffe0e0;font-weight:700;text-align:left;border-radius:10px}

.of-email-status{margin:10px 0;font-size:var(--lk-font-small);font-weight:400;text-align:center}
.of-email-status__warn{padding:8px 12px;border-radius:8px;background:#ffe0e0;color:#92400E}
.of-email-status__ok{padding:8px 12px;border-radius:8px;background:#ECFDF5;color:#166534;margin-bottom:6px}
.of-email-status__info{margin-top:6px;font-size:var(--lk-font-small);color:#4B5563}
.of-email-status__error{margin-top:6px;font-size:var(--lk-font-small);color:#B91C1C}
.oforma-docs__notice--info p{padding:10px 0 !important;margin:0 !important;text-align:center}
.oforma-docs__notice--info p a{text-decoration:underline}
.oforma-docs__notice--info p a:hover{text-decoration:none}


.oforma-profile__media{display:flex;align-items:center;gap:12px}
.oforma-profile__media-btn{display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border-radius:999px;border:1px solid #e5e7eb;background:#ffffff;font-size:var(--lk-font-small);cursor:pointer}
.oforma-profile__media-btn:hover{background:#f9fafb}
.oforma-profile__media-preview img{display:block;max-height:60px;width:auto}


.oforma-lk-account-actions{display:flex;gap:8px;margin-top:12px}
.oforma-lk-account-actions__link{display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border-radius:999px;border:1px solid #e5e7eb;background:#ffffff;font-size:var(--lk-font-small);color:#374151;text-decoration:none}
.oforma-lk-account-actions__link:hover{background:#f9fafb}
.oforma-lk-account-actions__logout{color:#b91c1c;border-color:#fecaca}
.oforma-lk-account-actions__logout:hover{background:#fef2f2}


.oforma-lk-menu-toggle{display:inline-flex;align-items:center;gap:6px;margin-bottom:10px;padding:6px 10px;border-radius:999px;border:1px solid #e5e7eb;background:#ffffff;font-size:var(--lk-font-small);color:#374151}
.oforma-lk-menu-toggle__icon{font-size:16px;line-height:1}
@media (min-width:1024px){
.oforma-lk-menu-toggle{display:none}
}

/* Мобильный выезжающий блок */
.oforma-lk-mobile-drawer{display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:40}
.oforma-lk-mobile-drawer.is-open{display:block}
.oforma-lk-mobile-drawer__panel{position:absolute;top:0;left:0;bottom:0;width:80%;max-width:280px;background:#f3f4f6;padding:16px;overflow-y:auto;box-shadow:2px 0 8px rgba(15,23,42,0.25)}
.oforma-lk-mobile-drawer__close{display:inline-flex;align-items:center;justify-content:center;margin-bottom:12px;padding:6px 10px;border-radius:999px;border:1px solid #e5e7eb;background:#ffffff;font-size:var(--lk-font-small);color:#374151}

/* Аккаунт-кнопки если нужно добить стиль */
.oforma-lk-account-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.oforma-lk-account-actions__link{display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border-radius:999px;border:1px solid #e5e7eb;background:#ffffff;font-size:var(--lk-font-small);color:#374151;text-decoration:none}
.oforma-lk-account-actions__link:hover{background:#f3f4f6}
.oforma-lk-account-actions__logout{color:#b91c1c;border-color:#fecaca}
.oforma-lk-account-actions__logout:hover{background:#fef2f2}

/* Навигация "Сервис Oforma" */
.oforma-lk-nav{display:flex;flex-direction:column;padding:4px 4px 6px}
.oforma-lk-nav__item{display:flex;align-items:center;padding:6px 10px;margin:0 4px 2px;border-radius:10px;font-size:var(--lk-font-small);color:#374151;text-decoration:none}
.oforma-lk-nav__item:hover{background:#f3f4f6}
.oforma-lk-nav__item--active{background:#eff6ff;color:#1d4ed8}
.oforma-lk-nav span{font-size:var(--lk-font-norm);}


.oforma-billing-title{font-size:var(--lk-font-lg);font-weight:600;margin:0 0 16px;color:#111827}
.oforma-billing-block{margin-bottom:20px}
.oforma-billing-history{margin-top:24px}
.oforma-billing-history__title{font-size:var(--lk-font-norm);font-weight:600;margin-bottom:8px;color:#111827}
.oforma-billing-history__empty{font-size:var(--lk-font-small);color:#6b7280;margin:0}
.oforma-billing-history__table{width:100%;border-collapse:collapse;font-size:var(--lk-font-small)}
.oforma-billing-history__table th,.oforma-billing-history__table td{padding:8px 10px;border-bottom:1px solid #e5e7eb;text-align:left}
.oforma-billing-history__table th{font-size:var(--lk-font-small);font-weight:500;color:#6b7280}
.oforma-billing-history__table td{color:#111827}

/*  Проекты */
.oforma-projects{display:grid;grid-template-columns:minmax(0,1.1fr)minmax(0,1.2fr);gap:24px;align-items:flex-start}
@media(max-width:1024px){.oforma-projects{grid-template-columns:minmax(0,1fr);gap:20px}}
.oforma-projects__title{font-size:var(--lk-font-lg);font-weight:600;margin-bottom:12px}
.oforma-projects-form{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px}
.oforma-projects-form__field{margin-bottom:10px}
.oforma-projects-form__label{display:block;font-size:var(--lk-font-small);color:#6b7280;margin-bottom:4px}
.oforma-projects-form__input{width:100%;border-radius:10px;border:1px solid #e5e7eb;padding:7px 10px;font-size:var(--lk-font-norm)}
.oforma-projects-form__submit{margin-top:10px;display:block;width:100%;border-radius:12px;border:none;padding:9px 16px;font-size:var(--lk-font-norm);font-weight:500;background:#2563eb !important;color:#fff;cursor:pointer}
.oforma-projects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.oforma-project-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px 14px 10px}
.oforma-project-card__head{display:flex;flex-direction:column;gap:2px;margin-bottom:6px}
.oforma-project-card__title{font-size:var(--lk-font-norm);font-weight:600;color:#111827}
.oforma-project-card__client{font-size:var(--lk-font-small);color:#4b5563}
.oforma-project-card__row{display:flex;font-size:var(--lk-font-small);color:#4b5563;margin-bottom:2px}
.oforma-project-card__label{flex-shrink:0;margin-right:4px;color:#6b7280}
.oforma-project-card__value{flex:1;min-width:0}
.oforma-project-card__delete{margin-top:6px}
.oforma-project-card__delete-btn{font-size:var(--lk-font-small);border:none;background:transparent;padding:0;color:#ef4444;cursor:pointer}
.oforma-projects__empty{font-size:var(--lk-font-norm);color:#6b7280}

/*страница заказа*/
.woocommerce-form-coupon-toggle{display:none}
.woocommerce-checkout .woocommerce-billing-fields>h3{display:none}
.woocommerce-checkout .woocommerce-privacy-policy-text{font-size:var(--lk-font-small);color:#6b7280}
.woocommerce-checkout .form-row.terms label span{font-size:var(--lk-font-small)}
.woocommerce-checkout .col2-set{display:block}
.woocommerce-checkout .col2-set .col-1{display:none}
.woocommerce-checkout .col2-set .col-2{width:100%;max-width:none}
.woocommerce-checkout .woocommerce-billing-fields .form-row{width:100%;max-width:420px;margin:0 auto 12px}


.of-checkout-box{max-width:420px;margin:0 auto;background:#fff;padding:10px 0}
.of-checkout-top{text-align:center;margin-bottom:12px}
.of-label-email{font-size:var(--lk-font-norm);font-weight:500;color:#111827;display:block;margin-bottom:4px}
.of-input-email{width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:8px 10px;font-size:var(--lk-font-norm)}

.of-pay-block{display:flex;justify-content:space-between;align-items:center;background:#f9fafb;border:1px солид #e5e7eb;border-radius:14px;padding:14px;margin-bottom:10px}
.of-rk-logo{width:120px;height:auto;display:block}
.of-btn-pay{padding:10px 18px;background:#111827 !important;color:#fff;font-size:var(--lk-font-norm);font-weight:600;border:none;border-radius:10px;cursor:pointer}
.of-btn-pay:disabled{opacity:0.4;cursor:not-allowed}

.of-check{margin-top:10px;text-align:left}
.of-check-label{font-size:var(--lk-font-small);color:#111827;display:flex;gap:6px;align-items:center}
.of-check-label input{width:16px;height:16px}


.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .woocommerce-checkout-review-order-table,
.woocommerce-checkout #payment{display:none!important}
.woocommerce-checkout #billing_email_field{display:none}

.of-result__preview{margin:16px 0;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;background:#f9fafb}
.of-result__iframe{width:100%;height:900px;border:0;display:block}


.oforma-checkout-box{background:#ffffff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;margin-bottom:20px}
.oforma-checkout-row{display:flex;justify-content:space-between;align-items:center}
.oforma-checkout-title{font-size:var(--lk-font-lg);font-weight:600;color:#111827;display:flex;gap:4px;align-items:center}
.oforma-checkout-qty{font-size:var(--lk-font-norm);color:#6b7280}
.oforma-checkout-price{font-size:var(--lk-font-lg);font-weight:700;color:#111827}

.of-checkout-doc{max-width:480px;margin:0 auto 16px;display:flex;gap:12px;align-items:flex-start;background:#ffffff;border-radius:14px;border:1px solid #e5e7eb;padding:10px 12px}
.of-checkout-doc__thumb{flex-shrink:0}
.of-checkout-doc__img{display:block;width:90px;height:auto;border-radius:6px}
.of-checkout-doc__info{flex:1;min-width:0}
.of-checkout-doc__title{font-size:var(--lk-font-norm);font-weight:600;color:#111827;margin-bottom:4px}
.of-checkout-doc__row{display:flex;font-size:var(--lk-font-small);color:#4b5563;margin-bottom:2px}
.of-checkout-doc__label{flex-shrink:0;margin-right:4px;color:#6b7280}
.of-checkout-doc__value{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:480px){.of-checkout-doc{max-width:100%}.of-checkout-doc__img{width:70px}}

.woocommerce-notices-wrapper{display:none}

/*вместо flex*/
.oforma-lk-shell{max-width:1120px;margin:0 auto;padding:0 8px}
@media(min-width:1024px){.oforma-lk-shell{display:flex;gap:24px}}


.of-table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.of-table{width:100%;border-collapse:collapse;table-layout:fixed}
@media(max-width:768px){.of-table{width:auto}}
.of-table th,.of-table td{padding:4px 6px;border:1px solid #e5e7eb;font-size:12px;white-space:nowrap}
.of-table th{text-align:center;background:#f9fafb;font-weight:600}
.of-table input{width:100%;border:none;padding:3px 4px;font-size:12px;box-sizing:border-box}
.of-table input:focus{outline:none}