/**
 * [shipping_price_table]
 */

.pt {
    max-width: 1440px;
    margin: 0 auto;
}

/* --- Tier switch --- */
.pt__tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin: 0 auto 26px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.pt__tabs {
    display: flex;
    width: fit-content;
}

.pt__tab {
    margin: 0;
    padding: 9px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: all .2s;
}

.pt__tab:hover {
    color: #374151;
    background: none;
}

.pt__tab.is-active {
    background: #fff;
    border-color: #ccfbf1;
    color: #0f766e;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .06);
}

.pt__tab[data-tier="express"].is-active {
    border-color: #fed7aa;
    color: #ea580c;
}

/* --- Table --- */
.pt__scroll {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(17, 24, 39, .08);
}

.pt-table {
    width: 100%;
    min-width: 1100px;
    margin: 0;
    border-collapse: collapse;
    background: #fff;
    font-size: 15px;
}

.pt-table thead th {
    padding: 17px 14px;
    background-color: #0d9488;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    border: 0;
}

.pt-table thead th.pt-table__country {
    text-align: left;
}

.pt-table tbody td {
    padding: 16px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    text-align: center;
    white-space: nowrap;
}

.pt-table tbody tr:last-child td {
    border-bottom: 0;
}

.pt-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.pt-table tbody tr:hover {
    background: #f0fdfa;
}

.pt-table__country {
    text-align: left !important;
    font-weight: 600;
    color: var(--sg-navy);
}

.pt-table__flag {
    display: inline-block;
    margin-right: 8px;
    font-size: 18px;
    line-height: 1;
}

.pt-badge {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 999px;
    background: #ccfbf1;
    color: #0f766e;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* --- Notes --- */
.pt__notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.pt__note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 17px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: var(--sg-muted);
    font-size: 13px;
    line-height: 1.55;
}

.pt__note-icon {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.3;
}

/* --- CTA --- */
.pt__cta {
    margin-top: 26px;
    text-align: center;
}

.pt__cta-note {
    margin: 0 0 14px;
    color: var(--sg-muted);
    font-size: 14px;
}

.pt__cta-btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    background-color: #0d9488;
    color: #fff;
    font-family: var(--sg-font-head);
    font-size: 15px;
    font-weight: 700;
    transition: all .25s;
}

.pt__cta-btn:hover {
    background-color: #0f766e;
    color: #fff;
    box-shadow: 0 10px 24px rgba(13, 148, 136, .3);
}

@media only screen and (max-width: 62em) {
    .pt__notes { grid-template-columns: 1fr; }
}

@media only screen and (max-width: 48em) {
    .pt__tabs { width: 100%; }
    .pt__tab { flex: 1 1 auto; padding: 10px 12px; }
    .pt-table { font-size: 13px; min-width: 900px; }
    .pt__cta-btn { display: block; }
}

/* Express uses the warm accent, as in the reference */
.pt-table__wrap[data-tier="express"] .pt-badge {
    background: #ffedd5;
    color: #c2410c;
}

/* The tier toggle relies on the hidden attribute */
.pt-table__wrap[hidden] {
    display: none !important;
}
