/* ============================================================
   PETRATIDE ORDER TRACKER v1.2 — Glassmorphic Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

.pot-wrapper {
    font-family: 'Montserrat', sans-serif;
    max-width: 580px;
    margin: 0 auto;
    padding: 20px;
}

/* ── Base Glass Card ─────────────────────────────────────── */
.pot-card {
    background: rgba(164, 63, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(164, 63, 255, 0.25);
    border-radius: 18px;
    padding: 32px 28px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* form card visible immediately */
#pot-form-card {
    opacity: 1;
    transform: none;
}

.pot-card-visible,
#pot-form-card {
    opacity: 1;
    transform: translateY(0);
}

.pot-result-hidden { display: none; }

/* ── Form ────────────────────────────────────────────────── */
.pot-icon-row {
    font-size: 42px;
    text-align: center;
    margin-bottom: 10px;
}

.pot-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #ffffff;
    text-align: center;
    margin: 0 0 8px;
}

.pot-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #9A9A9A;
    text-align: center;
    margin: 0 0 28px;
    line-height: 1.55;
}

/* ── Fields ──────────────────────────────────────────────── */
.pot-field-group { margin-bottom: 18px; }

.pot-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #c0a0ff;
    margin-bottom: 8px;
}

.pot-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(164, 63, 255, 0.07);
    border: 1px solid rgba(164, 63, 255, 0.28);
    border-radius: 12px;
    padding: 13px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pot-input::placeholder { color: rgba(255, 255, 255, 0.22); }

.pot-input:focus {
    border-color: rgba(164, 63, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(164, 63, 255, 0.15);
}

/* ── Primary Button — matches product .button ────────────── */
.pot-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    background: rgba(164, 63, 255, 0.12);
    border: 1px solid rgba(164, 63, 255, 0.35);
    color: #d4aaff;
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.04em;
    text-align: center;
}

.pot-btn:hover,
.pot-btn:focus {
    background: #A43FFF;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(164, 63, 255, 0.45);
    border-color: #A43FFF;
    outline: none;
}

.pot-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.pot-btn-ghost {
    background: transparent;
    border-color: rgba(164, 63, 255, 0.18);
    color: #9A9A9A;
    font-size: 13px;
    margin-top: 8px;
}
.pot-btn-ghost:hover {
    background: rgba(164, 63, 255, 0.08);
    color: #d4aaff;
    box-shadow: none;
    border-color: rgba(164, 63, 255, 0.35);
}

/* ── Error ───────────────────────────────────────────────── */
.pot-error {
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(255, 70, 70, 0.10);
    border: 1px solid rgba(255, 70, 70, 0.28);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #ff9999;
    text-align: center;
    line-height: 1.5;
}

/* ── Section label ───────────────────────────────────────── */
.pot-section-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #9A9A9A;
    margin-bottom: 20px;
}

/* ── Order Summary ───────────────────────────────────────── */
.pot-summary-card { opacity: 1 !important; transform: none !important; }

.pot-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.pot-summary-item {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.pot-summary-item.pot-item-visible {
    opacity: 1;
    transform: translateY(0);
}

.pot-summary-key {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9A9A9A;
    margin-bottom: 5px;
}

.pot-summary-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

/* ── Order Status Badge ──────────────────────────────────── */
.pot-order-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.pot-status-processing { background: rgba(164,63,255,0.20); border: 1px solid rgba(164,63,255,0.40); color: #d4aaff; }
.pot-status-completed  { background: rgba(40,200,120,0.15); border: 1px solid rgba(40,200,120,0.35); color: #7fffc0; }
.pot-status-pending    { background: rgba(255,180,40,0.12); border: 1px solid rgba(255,180,40,0.30); color: #ffd480; }
.pot-status-cancelled  { background: rgba(255,70,70,0.12);  border: 1px solid rgba(255,70,70,0.28);  color: #ff9999; }
.pot-status-other      { background: rgba(164,63,255,0.10); border: 1px solid rgba(164,63,255,0.25); color: #c0a0ff; }

/* ── Items list ──────────────────────────────────────────── */
.pot-items-list {
    border-top: 1px solid rgba(164, 63, 255, 0.15);
    padding-top: 16px;
}

.pot-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(164, 63, 255, 0.08);
}
.pot-item-row:last-child { border-bottom: none; }

.pot-item-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #e0d0ff;
    flex: 1;
}

.pot-item-qty {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #9A9A9A;
    background: rgba(164, 63, 255, 0.10);
    border: 1px solid rgba(164, 63, 255, 0.20);
    border-radius: 20px;
    padding: 2px 10px;
    margin-left: 12px;
    flex-shrink: 0;
}

/* ── Tracking card ───────────────────────────────────────── */
.pot-tracking-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.pot-result-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9A9A9A;
    margin-bottom: 6px;
}

.pot-tracking-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #ffffff;
    word-break: break-all;
    letter-spacing: 0.03em;
}

/* ── Carrier badge ───────────────────────────────────────── */
.pot-carrier-badge {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    border: 1px solid rgba(164,63,255,0.35);
    background: rgba(164,63,255,0.12);
    color: #d4aaff;
}
.pot-badge-ups     { background: rgba(89,46,131,0.25);  border-color: rgba(89,46,131,0.50);  color: #c59cff; }
.pot-badge-usps    { background: rgba(20,60,140,0.22);  border-color: rgba(60,120,220,0.40); color: #88b4ff; }
.pot-badge-unknown { background: rgba(164,63,255,0.10); border-color: rgba(164,63,255,0.25); color: #c0a0ff; }

/* ═══════════════════════════════════════════════════════════
   BIG CARRIER TRACK BUTTON
   ═══════════════════════════════════════════════════════════ */

.pot-track-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 18px 24px;
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(164,63,255,0.40);
    background: rgba(164,63,255,0.14);
    color: #ffffff;
    margin-bottom: 12px;
}

.pot-track-btn:hover,
.pot-track-btn:focus {
    background: #A43FFF;
    border-color: #A43FFF;
    box-shadow: 0 0 22px rgba(164, 63, 255, 0.50);
    color: #ffffff;
    text-decoration: none;
    outline: none;
    transform: translateY(-1px);
}

.pot-track-btn-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.pot-track-btn-text {
    flex: 1;
    text-align: center;
}

.pot-track-btn-arrow {
    font-size: 18px;
    flex-shrink: 0;
    opacity: 0.70;
}

/* UPS variant — warm purple tint */
.pot-track-btn-ups {
    background: rgba(89, 46, 131, 0.22);
    border-color: rgba(120, 70, 180, 0.50);
}
.pot-track-btn-ups:hover {
    background: #6B3FA0;
    border-color: #6B3FA0;
    box-shadow: 0 0 22px rgba(107, 63, 160, 0.55);
}

/* USPS variant — cool blue tint */
.pot-track-btn-usps {
    background: rgba(20, 60, 160, 0.20);
    border-color: rgba(60, 120, 220, 0.45);
}
.pot-track-btn-usps:hover {
    background: #1a4ab5;
    border-color: #1a4ab5;
    box-shadow: 0 0 22px rgba(26, 74, 181, 0.55);
}

/* ── Track note ──────────────────────────────────────────── */
.pot-track-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #9A9A9A;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* ── No tracking ─────────────────────────────────────────── */
.pot-no-tracking-card { text-align: center; }
.pot-no-track-icon { font-size: 40px; margin-bottom: 14px; }
.pot-no-track-msg {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #9A9A9A;
    line-height: 1.7;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
    .pot-card { padding: 24px 18px; }
    .pot-heading { font-size: 19px; }
    .pot-summary-grid { grid-template-columns: 1fr; gap: 12px; }
    .pot-tracking-meta { flex-direction: column; }
    .pot-track-btn { font-size: 14px; padding: 16px 18px; }
}

/* ── Tracking number as hyperlink (v1.3) ─────────────────── */
.pot-tracking-meta-left { flex: 1; min-width: 0; }

.pot-tracking-num-link {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #c97fff;
    text-decoration: underline;
    text-decoration-color: rgba(164, 63, 255, 0.45);
    text-underline-offset: 4px;
    word-break: break-all;
    letter-spacing: 0.03em;
    margin-bottom: 5px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.pot-tracking-num-link:hover,
.pot-tracking-num-link:focus {
    color: #ffffff;
    text-decoration-color: #A43FFF;
    outline: none;
}

.pot-tracking-carrier-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #9A9A9A;
    letter-spacing: 0.03em;
}
