/* Product Details — test-details inspired layout */

.product__details-area.pd-test {
    padding: 40px 0 70px;
    background: #f9fafb;
}

.pd-test-wrap {
    max-width: 1140px;
}

.pd-test-card,
.pd-test-tabs-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .pd-test-card,
    .pd-test-tabs-card {
        padding: 28px;
    }
}

/* Gallery — original design */
.pd-gallery {
    position: relative;
}

.pd-gallery .tab-content {
    position: relative;
    background: #f8faf8;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e4ebe4;
}

.pd-gallery .tab-content .popup-image {
    display: block;
    position: relative;
}

.pd-gallery .tab-content img {
    border: none;
    border-radius: 16px;
    background: #fff;
}

.pd-gallery__zoom {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--tg-theme-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    z-index: 2;
}

.pd-test-card .product__details-content {
    margin-left: 0;
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .pd-test-card .product__details-content {
        margin-top: 0;
    }
}

/* Info panel */
.pd-test-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pd-test-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pd-test-brand {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

.pd-test-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--tg-theme-primary);
    line-height: 1.35;
    margin: 0;
}

.pd-test-intro {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.55;
    margin: 0 !important;
}

.pd-test-intro + .pd-test-price-row {
    margin-top: 2px;
}

.pd-test-divider {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 0;
}

.pd-test-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f9fafb;
    border-radius: 12px;
    padding: 12px 16px;
    flex-wrap: wrap;
}

.pd-test-price-row__prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.pd-test-price-current {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: var(--tg-theme-primary);
    line-height: 1;
    margin: 0;
}

.pd-test-price-old {
    font-size: 0.875rem;
    color: #9ca3af;
    /* text-decoration: line-through; */
    margin: 0;
}

.pd-test-price-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 6px 0 0;
}

.pd-test-price-meta2 {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 6px 0 4px;
}

.pd-test-price-meta .pd-meta-item__value--copy {
    cursor: pointer;
    color: var(--tg-theme-primary);
    font-family: monospace, sans-serif;
}

.pd-test-stock {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.pd-test-stock--in {
    background: #dcfce7;
    color: #166534;
}

.pd-test-stock--out {
    background: #fee2e2;
    color: #b91c1c;
}

/* Order block */
.pd-test-order-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    margin: 0 0 10px;
}

.pd-test-order-label i {
    color: var(--tg-theme-primary);
    font-size: 0.5rem;
    margin-right: 4px;
    vertical-align: middle;
}

.pd-test-order-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 576px) {
    .pd-test-order-row {
        flex-direction: row;
        align-items: center;
    }
}

.pd-test-order-row .pd-qty-stepper {
    position: relative;
    flex: 0 0 auto;
    width: 118px;
    max-width: 118px;
    min-width: 118px;
    display: block !important;
    margin: 0;
}

.pd-test-order-row .pd-qty-stepper input[type="text"] {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-weight: 600;
    text-align: center;
    padding: 0 34px;
    font-size: 16px;
    color: #374151;
    background: #fff;
}

.pd-test-order-row .pd-qty-stepper .qtybutton {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    width: 30px;
    height: 30px;
    left: 5px;
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.pd-test-order-row .pd-qty-stepper .qtybutton.inc {
    left: auto;
    right: 5px;
}

.pd-test-order-row .pd-qty-stepper .qtybutton.dec {
    font-size: 20px;
}

.pd-test-order-row .pd-qty-stepper .qtybutton span {
    line-height: 1;
    transform: none;
}

.pd-test-order-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex: 1;
    width: 100%;
    min-width: 0;
}

.pd-test-order-actions .pd-test-offline-btn--buy,
.pd-test-order-actions .pd-test-offline-btn--quick {
    flex: 1;
    min-width: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 0.78rem;
    padding: 0 8px;
    gap: 5px;
    white-space: nowrap;
}

@media (min-width: 400px) {
    .pd-test-order-actions .pd-test-offline-btn--buy,
    .pd-test-order-actions .pd-test-offline-btn--quick {
        font-size: 0.85rem;
        padding: 0 12px;
        gap: 6px;
    }
}

@media (min-width: 576px) {
    .pd-test-order-actions .pd-test-offline-btn--buy,
    .pd-test-order-actions .pd-test-offline-btn--quick {
        font-size: 0.875rem;
        padding: 0 16px;
        gap: 8px;
    }
}

.pd-test-order-actions .pd-test-offline-btn--buy:disabled,
.pd-test-order-actions .pd-test-offline-btn--quick:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.pd-test-offline-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    margin: 14px 0 10px;
    text-align: center;
}

@media (min-width: 576px) {
    .pd-test-offline-label {
        text-align: left;
    }
}

.pd-test-offline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pd-test-offline-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.pd-test-offline-btn:hover {
    color: #fff;
}

.pd-test-offline-btn--wa {
    background: #25d366;
}

.pd-test-offline-btn--wa:hover {
    background: #20ba56;
}

.pd-test-offline-btn--msg {
    background: #0084ff;
}

.pd-test-offline-btn--msg:hover {
    background: #0076e5;
}

.pd-test-offline-btn--buy {
    background: #ea580c;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0px 30px;
}

.pd-test-offline-btn--buy:hover:not(:disabled),
.pd-test-offline-btn--buy:focus,
.pd-test-offline-btn--buy:focus-visible,
.pd-test-offline-btn--buy:active {
    background: #c2410c;
    color: #fff;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.pd-test-offline-btn--quick {
    background: var(--tg-theme-primary);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 20px;
}

.pd-test-offline-btn--quick:hover:not(:disabled),
.pd-test-offline-btn--quick:focus,
.pd-test-offline-btn--quick:focus-visible,
.pd-test-offline-btn--quick:active {
    background: #037012;
    color: #fff;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.pd-test-phone {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 10px;
    text-align: center;
}

@media (min-width: 576px) {
    .pd-test-phone {
        text-align: left;
    }
}

.pd-test-phone strong {
    color: #374151;
}

/* Inline delivery box */
.pd-test-delivery-box {
    border: 1px solid #d1fae5;
    background: rgba(236, 253, 245, 0.35);
    border-radius: 12px;
    padding: 16px;
}

.pd-test-delivery-box__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tg-heading-color);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pd-test-delivery-box__title i {
    color: var(--tg-theme-primary);
}

.pd-test-delivery-rows {
    font-size: 0.75rem;
    color: #4b5563;
}

.pd-test-delivery-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
}

.pd-test-delivery-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pd-test-delivery-row span:last-child {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.pd-test-delivery-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--tg-theme-primary);
    font-weight: 600;
    text-decoration: none;
}

.pd-test-delivery-link:hover {
    text-decoration: underline;
}

/* Note & share */
.pd-test-note {
    background: #fff8ed;
    border: 1px solid #ffe0a8;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #5c4a2a;
    margin: 0;
}

.pd-test-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pd-test-share__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tg-heading-color);
}

.pd-test-share__list {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pd-test-share__list a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s;
}

.pd-test-share__list a:hover {
    background: #e5e7eb;
}

/* Underline tabs */
.pd-test-tabs-card .nav-tabs {
    border-bottom: 1px solid #e5e7eb;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.pd-test-tabs-card .nav-tabs .nav-link {
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #6b7280 !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 12px 16px !important;
    white-space: nowrap;
}

.pd-test-tabs-card .nav-tabs .nav-link:hover {
    color: #374151 !important;
    border-bottom-color: #d1d5db !important;
}

.pd-test-tabs-card .nav-tabs .nav-link.active {
    color: var(--tg-theme-primary) !important;
    font-weight: 600;
    border-bottom-color: var(--tg-theme-primary) !important;
}

.pd-test-tabs-card .tab-content {
    padding: 20px 0 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.75;
}

.pd-test-tabs-card .tab-content img {
    max-width: 100%;
    height: auto;
}

/* Related products */
.pd-test-related {
    margin-top: 8px;
}

.pd-test-related .section__title-two .title {
    font-size: 1.35rem;
}

/* Mobile sticky CTA */
.pd-test-sticky {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 990;
    background: #fff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    gap: 10px;
    align-items: center;
}

@media (max-width: 767.98px) {
    .pd-test-sticky {
        display: flex;
    }

    .product__details-area.pd-test {
        padding-bottom: 90px;
    }
}

.pd-test-sticky__price {
    flex: 1;
    min-width: 0;
}

.pd-test-sticky__price strong {
    display: block;
    font-size: 1.1rem;
    color: var(--tg-theme-primary);
    font-weight: 700;
}

.pd-test-sticky__price span {
    font-size: 0.72rem;
    color: #6b7280;
}

.pd-test-sticky .pd-test-offline-btn--buy {
    flex-shrink: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 0 14px;
    font-size: 0.8rem;
}

.pd-test-sticky__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pd-test-sticky .pd-test-offline-btn--quick {
    flex-shrink: 0;
    border: none !important;
    padding: 0 12px;
    font-size: 0.78rem;
    white-space: nowrap;
}

.pd-test-sticky .pd-test-offline-btn--buy:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Quick checkout modal */
.pd-quick-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pd-quick-modal.is-open {
    display: flex;
}

.pd-quick-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.pd-quick-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    padding: 24px 20px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.pd-quick-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
}

.pd-quick-modal__close:hover {
    color: #374151;
}

.pd-quick-modal__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}

.pd-quick-modal__title i {
    color: #ea580c;
    margin-right: 6px;
}

.pd-quick-modal__subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0 0 14px;
    line-height: 1.45;
}

.pd-quick-order-table-wrap {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 14px;
    overflow: hidden;
}

.pd-quick-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
    line-height: 1.35;
    table-layout: fixed;
}

.pd-quick-order-table--items {
    width: 100%;
}

.pd-quick-order-table--items thead th {
    font-size: 0.72rem;
    font-weight: 700;
    color: #374151;
    text-align: left;
    padding: 6px 5px;
    border-bottom: 2px solid #bbf7d0;
    overflow: hidden;
}

.pd-quick-order-table--items thead th:nth-child(1) { width: 32%; }
.pd-quick-order-table--items thead th:nth-child(2) { width: 16%; }
.pd-quick-order-table--items thead th:nth-child(3) { width: 18%; }
.pd-quick-order-table--items thead th:nth-child(4) { width: 18%; }
.pd-quick-order-table--items thead th:nth-child(5) { width: 16%; }

.pd-quick-order-table--items thead th:last-child {
    text-align: right;
    padding-right: 2px;
}

.pd-quick-order-table th,
.pd-quick-order-table td {
    padding: 5px 6px;
    vertical-align: middle;
    border-bottom: 1px solid #dcfce7;
    overflow: hidden;
}

.pd-quick-order-table tfoot th,
.pd-quick-order-table tfoot td {
    border-bottom: none;
    padding: 6px 5px;
}

.pd-quick-order-table tfoot th {
    font-weight: 600;
    color: #4b5563;
    text-align: left;
}

.pd-quick-tfoot-value {
    font-weight: 600;
    color: #111827;
    text-align: right !important;
    white-space: normal;
    word-break: break-word;
    padding-right: 2px !important;
}

.pd-quick-item-name {
    font-weight: 600;
    color: #14532d;
    font-size: 0.78rem;
    line-height: 1.3;
    word-break: break-word;
}

.pd-quick-item-price,
.pd-quick-item-subtotal {
    white-space: nowrap;
    font-weight: 600;
    color: #111827;
    font-size: 0.74rem;
    text-align: right;
}

.pd-quick-order-table--items tbody td:nth-child(2),
.pd-quick-order-table--items tbody td:nth-child(4) {
    text-align: right;
}

.pd-quick-order-table--items thead th:nth-child(2),
.pd-quick-order-table--items thead th:nth-child(4) {
    text-align: right;
}

.pd-quick-order-table--items thead th:nth-child(3),
.pd-quick-order-table--items tbody td:nth-child(3) {
    text-align: center;
}

.pd-quick-item-qty {
    width: auto;
}

.pd-quick-qty-ctrl {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 2px;
}

.pd-quick-qty-btn {
    width: 22px;
    height: 22px;
    border: none;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.pd-quick-qty-btn:hover {
    background: #e5e7eb;
}

.pd-quick-qty-val {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: #111827;
}

.pd-quick-item-remove {
    text-align: right;
    padding-right: 2px !important;
}

.pd-quick-remove-btn {
    border: none;
    background: none;
    color: #dc2626;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 0.8rem;
    line-height: 1;
}

.pd-quick-remove-btn:hover {
    color: #991b1b;
}

.pd-quick-order-table__loading td {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 12px 6px;
}

.pd-quick-empty {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
    margin: 8px 0 0;
}

.pd-quick-order-table__grand th,
.pd-quick-order-table__grand td {
    padding-top: 8px;
    border-top: 2px solid #86efac;
    font-size: 0.82rem;
    color: #111827;
}

.pd-quick-order-table__grand .pd-quick-tfoot-value {
    color: var(--tg-theme-primary);
    font-size: 0.88rem;
}

.pd-quick-field {
    margin-bottom: 12px;
}

.pd-quick-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.pd-quick-field-hint {
    font-size: 0.72rem;
    color: #6b7280;
    margin: 0 0 6px;
    line-height: 1.4;
}

.pd-quick-required {
    color: #dc2626;
    font-weight: 700;
}

.pd-quick-field--invalid,
.pd-quick-mobile-row .pd-quick-field--invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.pd-quick-field:has(.pd-quick-field--invalid) label {
    color: #b91c1c;
}

.pd-quick-field input,
.pd-quick-field select,
.pd-quick-field textarea,
.pd-quick-mobile-row input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: #111827;
    background: #fff;
}

.pd-quick-field input::placeholder,
.pd-quick-field textarea::placeholder,
.pd-quick-mobile-row input::placeholder {
    font-size: 0.875rem;
    color: #9ca3af;
    opacity: 1;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
}

.pd-quick-field input::-moz-placeholder,
.pd-quick-field textarea::-moz-placeholder,
.pd-quick-mobile-row input::-moz-placeholder {
    font-size: 0.875rem;
    color: #9ca3af;
    opacity: 1;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
}

.pd-quick-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.pd-quick-field select:required:invalid {
    color: #9ca3af;
    font-size: 0.875rem;
}

.pd-quick-field select option {
    font-size: 0.875rem;
    color: #111827;
}

.pd-quick-field input:focus,
.pd-quick-field select:focus,
.pd-quick-field textarea:focus,
.pd-quick-mobile-row input:focus {
    outline: none;
    border-color: var(--tg-theme-primary);
    box-shadow: 0 0 0 3px rgba(4, 120, 20, 0.12);
}

.pd-quick-mobile-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.pd-quick-mobile-row input {
    flex: 1;
    min-width: 0;
}

.pd-quick-otp-btn {
    flex-shrink: 0;
    border: none;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    cursor: pointer;
    white-space: nowrap;
}

.pd-quick-otp-btn:hover:not(:disabled) {
    background: #1d4ed8;
}

.pd-quick-otp-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.pd-quick-otp-btn--verify {
    background: var(--tg-theme-primary);
}

.pd-quick-otp-btn--verify:hover:not(:disabled) {
    background: #037012;
}

.pd-quick-otp-block {
    margin-bottom: 12px;
}

.pd-quick-otp-block label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.pd-quick-otp-msg {
    font-size: 0.75rem;
    margin: 6px 0 0;
    color: #6b7280;
}

#pd-quick-mobile-msg {
    margin-top: 6px;
    margin-bottom: 0;
}

.pd-quick-otp-msg--success {
    color: #15803d;
}

.pd-quick-otp-msg--error {
    color: #b91c1c;
}

.pd-quick-otp-verified {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.pd-quick-otp-verified i {
    font-size: 1rem;
}

.pd-quick-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 4px;
    font-size: 0.9rem;
    color: #374151;
}

.pd-quick-total strong {
    font-size: 1.1rem;
    color: var(--tg-theme-primary);
}

.pd-quick-note {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0 0 12px;
}

.pd-quick-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.pd-quick-submit {
    width: 100%;
    margin-top: 4px;
}

.pd-flash {
    border-radius: 12px;
    border: none;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.pd-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--tg-heading-color);
    color: #fff;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

@media (min-width: 768px) {
    .pd-toast {
        bottom: 24px;
    }
}

.pd-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Order success page */
.os-page {
    padding: 32px 0 72px;
    background: #f9fafb;
}

.os-hero {
    text-align: center;
    margin-bottom: 24px;
}

.os-hero__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.os-hero__title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px;
}

.os-hero__lead {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0 0 20px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.os-order-id {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.os-order-id__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.02em;
}

.os-order-id__copy {
    border: none;
    background: #fff;
    color: var(--tg-theme-primary);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.os-order-id__copy:hover {
    background: #ecfdf5;
}

.os-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.os-status--pending {
    background: #fef3c7;
    color: #b45309;
}

.os-status--confirmed {
    background: #d1fae5;
    color: #047857;
}

.os-status--cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.os-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.os-grid__main,
.os-grid__side {
    display: grid;
    gap: 24px;
    align-content: start;
}

@media (min-width: 992px) {
    .os-grid {
        grid-template-columns: 1.4fr 1fr;
        align-items: start;
    }
}

.os-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.os-card__title i {
    color: var(--tg-theme-primary);
}

.os-table-wrap {
    overflow-x: auto;
}

.os-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.os-table th,
.os-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
}

.os-table th {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.os-table td:last-child,
.os-table th:last-child {
    text-align: right;
    white-space: nowrap;
}

.os-table tbody tr:last-child td {
    border-bottom: none;
}

.os-table__name {
    font-weight: 600;
    color: #111827;
}

.os-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.os-info-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.88rem;
}

.os-info-list li:last-child {
    border-bottom: none;
}

.os-info-list__label {
    color: #6b7280;
    flex-shrink: 0;
}

.os-info-list__value {
    color: #111827;
    font-weight: 600;
    text-align: right;
}

.os-totals {
    margin-top: 4px;
}

.os-totals__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.88rem;
    color: #4b5563;
}

.os-totals__row--grand {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 2px solid #e5e7eb;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.os-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.os-steps li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.86rem;
    color: #4b5563;
}

.os-steps__num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ecfdf5;
    color: var(--tg-theme-primary);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.os-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.os-actions .pd-test-offline-btn {
    min-width: 180px;
    text-decoration: none;
}

.os-support {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.os-support__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111827;
}

.os-support__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.os-support__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.os-support__link:hover {
    background: #e5e7eb;
    color: #111827;
}

.os-empty {
    text-align: center;
    padding: 48px 24px;
}

.os-empty__icon {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 16px;
}

.os-empty__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.os-empty__text {
    color: #6b7280;
    margin: 0 0 20px;
}

.os-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 0.82rem;
    color: #6b7280;
}

.os-meta span strong {
    color: #374151;
}

.os-account-panel {
    margin-bottom: 24px;
}

.os-account-panel--optional {
    border-color: #d1fae5;
    background: linear-gradient(180deg, #ffffff 0%, #fafffe 100%);
}

.os-account-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.os-account-panel__head .os-card__title {
    margin-bottom: 0;
}

.os-account-optional-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.os-account-intro {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 18px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.os-account-intro strong {
    display: block;
    color: #111827;
    margin-bottom: 6px;
}

.os-account-intro--logged {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
    font-weight: 600;
}

.os-account-intro--logged i {
    margin-top: 2px;
    flex-shrink: 0;
}

.os-account-login-id {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.os-account-login-id__label {
    display: block;
    font-size: 0.72rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.os-account-login-id__value {
    display: block;
    font-size: 1rem;
    color: #111827;
    font-family: Tahoma, Verdana, sans-serif;
}

.os-account-login-id__hint {
    display: block;
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 4px;
}

.os-account-optional-zone {
    margin-top: 4px;
    padding: 16px;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    background: #fff;
}

.os-account-optional-zone__title {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111827;
}

.os-account-optional-zone__lead {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0 0 16px;
    line-height: 1.5;
}

.os-account-skip-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
}

.os-account-skip-note i {
    color: #9ca3af;
    margin-top: 2px;
    flex-shrink: 0;
}

.os-actions-lead {
    margin: 0 0 10px;
    font-size: 0.84rem;
    color: #6b7280;
    text-align: center;
}

.os-account-benefits,
.os-account-how {
    margin-bottom: 18px;
}

.os-account-benefits h3,
.os-account-how h3 {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #111827;
}

.os-account-benefits ul,
.os-account-how ol {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.os-account-benefits li {
    display: flex;
    gap: 10px;
    font-size: 0.84rem;
    color: #4b5563;
    margin-bottom: 8px;
    line-height: 1.45;
}

.os-account-benefits i {
    color: var(--tg-theme-primary);
    margin-top: 2px;
}

.os-account-how ol {
    padding-left: 18px;
    font-size: 0.84rem;
    color: #4b5563;
    line-height: 1.55;
}

.os-account-how a {
    color: var(--tg-theme-primary);
    font-weight: 600;
}

.os-account-status {
    font-size: 0.84rem;
    line-height: 1.5;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0 0 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.os-account-status i {
    margin-top: 2px;
    flex-shrink: 0;
}

.os-account-status--existing {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.os-account-status--new {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.os-account-form--secondary {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
}

.os-account-toggle-wrap {
    margin: 12px 0 0;
    text-align: center;
}

.os-account-toggle-link {
    border: none;
    background: none;
    color: var(--tg-theme-primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.os-account-toggle-link:hover {
    color: #037012;
}

.os-account-form__lead {
    font-size: 0.84rem;
    color: #4b5563;
    margin: 0 0 14px;
    line-height: 1.5;
}

.os-account-field {
    margin-bottom: 12px;
}

.os-account-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.os-account-field input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.875rem;
}

.os-account-password-wrap {
    position: relative;
}

.os-account-password-wrap input {
    padding-right: 42px;
}

.os-account-password-wrap input.is-match {
    border-color: #22c55e;
}

.os-account-password-wrap input.is-mismatch {
    border-color: #ef4444;
}

.os-account-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.os-account-password-toggle:hover {
    color: var(--tg-theme-primary);
    background: #f3f4f6;
}

.os-account-password-match {
    margin: 6px 0 0;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.4;
}

.os-account-password-match.is-ok {
    color: #15803d;
}

.os-account-password-match.is-ok::before {
    content: '\2713  ';
}

.os-account-password-match.is-bad {
    color: #b91c1c;
}

.os-account-password-match.is-bad::before {
    content: '\2717  ';
}

.os-account-field input:focus {
    outline: none;
    border-color: var(--tg-theme-primary);
    box-shadow: 0 0 0 3px rgba(11, 138, 62, 0.12);
}

.os-account-submit {
    width: 100%;
    margin-top: 4px;
}

.os-account-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.82rem;
    margin-bottom: 14px;
}

.os-account-logged p {
    margin: 0 0 14px;
    color: #047857;
    font-size: 0.9rem;
    font-weight: 600;
}

.os-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.os-account-actions .pd-test-offline-btn {
    flex: 1;
    min-width: 160px;
    text-decoration: none;
}

