/* =========================================================================
   PT CHECKOUT STYLES
   ========================================================================= */

/* Trustap Secured Badge */
.pt-co-trustap-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f7f0;
    border: 1px solid #b8ddb8;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: #2d6a2d;
    line-height: 1.4;
}

.pt-co-trustap-badge svg {
    flex-shrink: 0;
    stroke: #2d6a2d;
}

/* Order group headers (Store / Marketplace) */
.pt-co-group-header td {
    padding: 10px 12px 6px !important;
    background: #f8f8f8;
    border-top: 2px solid #eee !important;
}

.pt-co-seller-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px 3px 6px;
    border-radius: 20px;
}

.pt-co-seller-label--store {
    background: #e8f4fd;
    color: #1565c0;
}

.pt-co-seller-label--store svg { stroke: #1565c0; }

.pt-co-seller-label--marketplace {
    background: #fde8e8;
    color: #c00;
}

.pt-co-seller-label--marketplace svg { stroke: #c00; }

/* Marketplace item "Seller:" line */
.pt-co-sold-by {
    font-size: 0.78rem;
    color: #888;
    margin-top: 3px;
}

/* Mixed-cart shipping breakdown */
.pt-co-shipping-note td {
    padding: 6px 12px !important;
}

.pt-co-ship-breakdown {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    border-left: 3px solid #eee;
    padding-left: 10px;
    margin: 4px 0;
}

.pt-co-ship-breakdown p { margin: 0 0 4px; }
.pt-co-ship-breakdown p:last-child { margin-bottom: 0; }

.pt-co-ship-label {
    font-weight: 700;
    color: #333;
}


/* =========================================================================
   LIFESTYLE STORE — gifts/merch "Piston Tribe Official" badge
   ========================================================================= */

/* Badge on product tiles */
.pt-official-badge {
    display: inline-block;
    background: #111;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    pointer-events: none;
}

/* Ensure product image wrapper is relative for badge positioning */
.pt-lifestyle-store .product .woocommerce-loop-product__link {
    position: relative;
    display: block;
}


/* Hide technical "Condition" and "Location" attribute filter groups */
.pt-lifestyle-store .pt-filter-group[data-taxonomy="pa_condition"],
.pt-lifestyle-store .pt-filter-group[data-taxonomy="pa_location"],
.pt-lifestyle-store .widget_layered_nav ul li[data-term-slug*="condition"],
.pt-lifestyle-store [class*="filter-condition"],
.pt-lifestyle-store [class*="filter-location"] {
    display: none !important;
}


/* =========================================================================
   BUYER PROTECTION fee row in order review table
   ========================================================================= */

.pt-co-buyer-protection th,
.pt-co-buyer-protection td {
    color: #c00;
    font-size: 0.88rem;
}


/* =========================================================================
   THANK YOU PAGE — pt-ty-* post-purchase next steps
   ========================================================================= */

.pt-ty-next-steps {
    margin: 32px 0;
}

.pt-ty-next-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 16px;
}

.pt-ty-panel {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 16px;
}

.pt-ty-panel--store {
    border-color: #cce0f5;
    background: #f5faff;
}

.pt-ty-panel--marketplace {
    border-color: #c8e6c9;
    background: #f0f9f0;
}

.pt-ty-panel--neutral {
    border-color: #eee;
    background: #fafafa;
}

.pt-ty-panel-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
}

.pt-ty-panel--store .pt-ty-panel-icon    { background: #e3f0fb; color: #1565c0; }
.pt-ty-panel--store .pt-ty-panel-icon svg { stroke: #1565c0; }

.pt-ty-panel--marketplace .pt-ty-panel-icon    { background: #e8f5e9; color: #2d6a2d; }
.pt-ty-panel--marketplace .pt-ty-panel-icon svg { stroke: #2d6a2d; }

.pt-ty-panel-body {
    flex: 1;
    min-width: 0;
}

.pt-ty-panel-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pt-ty-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
}

.pt-ty-badge--store {
    background: #ddeeff;
    color: #1565c0;
}

.pt-ty-badge--marketplace {
    background: #d4edda;
    color: #2d6a2d;
}

.pt-ty-panel-body p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 8px;
}

.pt-ty-panel-body p:last-of-type { margin-bottom: 12px; }

.pt-ty-panel-note {
    font-size: 0.82rem !important;
    color: #888 !important;
    border-left: 3px solid #ccc;
    padding-left: 10px;
}

.pt-ty-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #c00;
    text-decoration: none;
}

.pt-ty-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .pt-ty-panel {
        flex-direction: column;
        gap: 12px;
        padding: 18px;
    }

    .pt-ty-panel-icon {
        width: 36px;
        height: 36px;
    }
}
