/* ═══════════════════════════════════════════════
   PRINT DIRECTORY — AUTH & VENDOR PACKAGE STYLES
   Appended to theme.css via wp_enqueue_style
═══════════════════════════════════════════════ */

/* ── Auth Wrap ──────────────────────────────── */
.pd-auth-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
}

.pd-auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(26,60,94,.12);
    padding: 40px;
    width: 100%;
    max-width: 480px;
}

.pd-auth-card--wide { max-width: 720px; }

.pd-auth-logo {
    text-align: center;
    margin-bottom: 28px;
}
.pd-auth-logo img { max-height: 52px; }
.pd-auth-logo-text { font-size: 24px; font-weight: 700; color: #1A3C5E; }
.pd-auth-logo-text strong { color: var(--pd-primary, #E84B16); }

.pd-auth-title {
    font-size: 24px;
    font-weight: 800;
    color: #1A3C5E;
    text-align: center;
    margin: 0 0 6px;
}

.pd-auth-subtitle {
    text-align: center;
    color: #6b7280;
    margin: 0 0 28px;
    font-size: 14px;
}

/* ── Auth Notice ───────────────────────────── */
.pd-auth-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}
.pd-auth-notice--success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    display: block;
}
.pd-auth-notice--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}

/* ── Form fields ────────────────────────────── */
.pd-auth-form { display: flex; flex-direction: column; gap: 16px; }
.pd-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .pd-form-row-2 { grid-template-columns: 1fr; } }

.pd-form-field { display: flex; flex-direction: column; gap: 6px; }

.pd-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pd-form-field input[type="text"],
.pd-form-field input[type="email"],
.pd-form-field input[type="password"],
.pd-form-field input[type="tel"] {
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    color: #111;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    background: #fafafa;
}
.pd-form-field input:focus {
    border-color: var(--pd-primary, #E84B16);
    box-shadow: 0 0 0 3px rgba(232,75,22,.12);
    background: #fff;
}

.pd-password-wrap { position: relative; }
.pd-password-wrap input { padding-right: 44px; }
.pd-toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.pd-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
}
.pd-check-label input[type="checkbox"] { margin-top: 2px; accent-color: var(--pd-primary, #E84B16); }
.pd-check-label a { color: var(--pd-primary, #E84B16); }

.pd-auth-forgot { font-size: 12px; color: var(--pd-primary, #E84B16); text-decoration: none; }
.pd-auth-forgot:hover { text-decoration: underline; }

/* ── Divider ────────────────────────────────── */
.pd-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #9ca3af;
    font-size: 13px;
}
.pd-auth-divider::before,
.pd-auth-divider::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }

.pd-auth-switch { text-align: center; font-size: 14px; color: #6b7280; margin: 0; }
.pd-auth-switch a { color: var(--pd-primary, #E84B16); font-weight: 600; text-decoration: none; }
.pd-auth-link { color: var(--pd-primary, #E84B16); font-size: 14px; text-decoration: none; }

/* ── Buttons ─────────────────────────────────── */
.pd-btn--full { width: 100%; justify-content: center; font-size: 15px; padding: 13px 20px; }

/* ── Register tabs ──────────────────────────── */
.pd-reg-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.pd-reg-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    text-align: left;
    transition: all .2s;
    font-family: inherit;
}
.pd-reg-tab:hover { border-color: var(--pd-primary, #E84B16); }
.pd-reg-tab--active {
    border-color: var(--pd-primary, #E84B16);
    background: #fff5f2;
}
.pd-reg-tab-icon { font-size: 28px; line-height: 1; }
.pd-reg-tab strong { display: block; font-size: 14px; color: #1A3C5E; }
.pd-reg-tab small { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }

.pd-reg-info-bar {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
.pd-reg-info-bar--vendor {
    background: #fff3e0;
    border-color: #ffcc80;
    color: #e65100;
}

/* Package chips in registration */
.pd-reg-pkg-preview { margin-top: 4px; }
.pd-reg-pkg-preview-label { font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.pd-reg-pkg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-pkg-chip {
    border: 1.5px solid;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   VENDOR PACKAGES GRID
═══════════════════════════════════════════════ */

.pd-vendor-packages-wrap { padding: 20px 0; }
.pd-vendor-pkg-grid {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}
.pd-vendor-pkg-grid--3col { grid-template-columns: repeat(3, 1fr); }
.pd-vendor-pkg-grid--2col { grid-template-columns: repeat(2, 1fr); }
.pd-vendor-pkg-grid--1col { grid-template-columns: 1fr; }
@media (max-width: 860px) {
    .pd-vendor-pkg-grid--3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .pd-vendor-pkg-grid { grid-template-columns: 1fr; }
}

.pd-vendor-pkg {
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    position: relative;
    transition: box-shadow .25s, transform .2s;
    display: flex;
    flex-direction: column;
}
.pd-vendor-pkg:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.10);
    transform: translateY(-2px);
}
.pd-vendor-pkg--popular {
    border-color: var(--pkg-color, #E84B16);
    box-shadow: 0 0 0 3px rgba(232,75,22,.15);
}
.pd-vendor-pkg--current {
    border-color: var(--pkg-color, #1A3C5E);
}

.pd-pkg-popular-badge {
    position: absolute;
    top: -1px;
    right: 16px;
    background: var(--pkg-color, #E84B16);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
    z-index: 2;
}

.pd-pkg-current-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 2;
}

.pd-vendor-pkg-header {
    padding: 28px 20px 20px;
    color: #fff;
    text-align: center;
}
.pd-vendor-pkg-header h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #fff;
}
.pd-vendor-pkg-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}
.pd-price-amount { font-size: 32px; font-weight: 800; }
.pd-price-period { font-size: 13px; opacity: .8; }
.pd-vendor-pkg-limit { font-size: 12px; opacity: .75; }

.pd-vendor-pkg-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 16px;
}

.pd-vendor-pkg-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.pd-vendor-feat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
}
.pd-vendor-feat--no { color: #9ca3af; }

.pd-feat-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d1fae5;
    color: #065f46;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.pd-feat-cross {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.pd-vendor-pkg-action { text-align: center; }

.pd-pkg-active-label {
    display: block;
    font-weight: 700;
    color: #065f46;
    font-size: 14px;
    padding: 10px;
    background: #d1fae5;
    border-radius: 8px;
}

.pd-vendor-pkg-note {
    margin-top: 20px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

/* ── Current Plan Banner ─────────────────────── */
.pd-current-plan-banner {
    border: 2px solid;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    background: #fafafa;
}
.pd-current-plan-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.pd-current-plan-badge {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}
.pd-current-plan-expiry { font-size: 13px; color: #6b7280; }
.pd-expiry-warning { color: #dc2626; font-weight: 700; margin-left: 8px; }
.pd-expiry-soon { color: #d97706; margin-left: 8px; }

/* Vendor dashboard sub current plan */
.pd-sub-current {
    border: 2px solid;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    background: #fafafa;
}
.pd-sub-current-left h3 { margin: 4px 0 8px; font-size: 18px; color: #1A3C5E; }
.pd-sub-current-badge {
    display: inline-block;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.pd-sub-current-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.pd-sub-feat {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}
.pd-sub-feat.yes { background: #f0fdf4; border-color: #86efac; color: #166534; }
.pd-sub-feat.no  { background: #f9fafb; color: #9ca3af; }

/* ── Widget heading ─────────────────────────── */
.pd-widget-heading {
    font-size: 24px;
    font-weight: 800;
    color: #1A3C5E;
    margin-bottom: 20px;
    text-align: center;
}
