/* Description / notes / comments tabs on the digital product page. Same visual language as profile.css and comments.css */

.pt {
    --pt-blue: #0078D4;
    --pt-blue-soft: #EAF3FC;
    --pt-text: #1F1F1F;
    --pt-muted: #6B6B6B;
    --pt-border: #E6E6E6;
    --pt-card: #FFFFFF;
    --pt-radius: 14px;
    --pt-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);

    /* Same outer width as the other page sections (.ProductDescription has 40px side padding) */
    margin-top: 24px;
    margin-bottom: 24px;
    direction: rtl;
    box-sizing: border-box;
}

.pt-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    margin-bottom: 16px;
    background: #F7F7F9;
    border: 1px solid var(--pt-border);
    border-radius: 999px;
}

.pt-tab {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: var(--pt-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pt-tab:hover {
    color: var(--pt-text);
}

.pt-tab:focus-visible {
    outline: 2px solid var(--pt-blue);
    outline-offset: 2px;
}

.pt-tab.is-active {
    background: var(--pt-card);
    color: var(--pt-blue);
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pt-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    background: var(--pt-blue-soft);
    color: var(--pt-blue);
    font-size: 12px;
    font-weight: bold;
}

.pt-card {
    padding: 24px 32px;
    background: var(--pt-card);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    box-shadow: var(--pt-shadow);
    line-height: 2;
    overflow-wrap: anywhere;
}

/* .Descripton (text styles from site.css) is hidden by default there; the tab decides visibility here */
.pt .pt-card.Descripton {
    display: block;
}

.pt-card img {
    max-width: 100%;
    height: auto;
}

/* The comment section fills the tab instead of being a separate page section */
.pt-panel .cm-section,
.pt-panel .cm-section.section {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.pt-panel .cm-title {
    display: none;
}

@media only screen and (max-width: 992px) {
    .pt {
        width: calc(95% + 80px);
    }
}

@media only screen and (max-width: 700px) {
    .pt {
        width: calc(95% + 20px);
        margin-top: 16px;
    }

    .pt-tab {
        height: 42px;
        padding: 0 8px;
        font-size: 14px;
    }

    .pt-card {
        padding: 16px;
    }
}
