/* ── Painting Theory Wellness Portal – Frontend Styles ── */
:root {
  --pt-primary:    #B1602B;
  --pt-primary-dk: #8f4d22;
  --pt-primary-lt: #f5ede6;
  --pt-bg:         #FAF8F4;
  --pt-text:       #1A1714;
  --pt-muted:      #6B6560;
  --pt-border:     #E0DBD5;
  --pt-white:      #FFFFFF;
  --pt-success:    #2E7D32;
  --pt-error:      #C62828;
  --pt-warning:    #F57C00;
  --pt-radius:     8px;
  --pt-radius-lg:  12px;
  --pt-shadow:     0 2px 12px rgba(0,0,0,.06);
  --pt-shadow-md:  0 4px 24px rgba(0,0,0,.10);
  --pt-font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pt-font-serif: Georgia, 'Times New Roman', serif;
}

/* ── Reset & base ── */
.pt-wrap *, .pt-login-wrap * { box-sizing: border-box; }
.pt-wrap, .pt-login-wrap {
  font-family: var(--pt-font);
  color: var(--pt-text);
  line-height: 1.6;
}

/* ── Buttons ── */
.pt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--pt-radius); border: none;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .18s;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.pt-btn:focus-visible { outline: 2px solid var(--pt-primary); outline-offset: 2px; }
.pt-btn-primary  { background: var(--pt-primary);  color: #fff; }
.pt-btn-primary:hover { background: var(--pt-primary-dk); }
.pt-btn-outline  { background: transparent; color: var(--pt-primary); border: 1.5px solid var(--pt-primary); }
.pt-btn-outline:hover { background: var(--pt-primary-lt); }
.pt-btn-ghost    { background: transparent; color: var(--pt-muted); border: 1.5px solid var(--pt-border); }
.pt-btn-ghost:hover { background: #f5f5f5; }
.pt-btn-full     { width: 100%; }
.pt-btn-lg       { padding: 14px 28px; font-size: 15px; }
.pt-btn-sm       { padding: 6px 12px; font-size: 12px; }
.pt-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Messages ── */
.pt-message { padding: 12px 16px; border-radius: var(--pt-radius); font-size: 14px; margin: 12px 0; }
.pt-message.success { background: #E8F5E9; color: var(--pt-success); border-left: 4px solid var(--pt-success); }
.pt-message.error   { background: #FFEBEE; color: var(--pt-error);   border-left: 4px solid var(--pt-error); }
.pt-message.info    { background: var(--pt-primary-lt); color: var(--pt-primary); border-left: 4px solid var(--pt-primary); }

/* ── Form fields ── */
.pt-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.pt-field label { font-size: 13px; font-weight: 600; color: var(--pt-text); }
.pt-field .req { color: var(--pt-primary); }
.pt-field input,
.pt-field select,
.pt-field textarea {
  padding: 10px 14px; border: 1.5px solid var(--pt-border); border-radius: var(--pt-radius);
  font-size: 14px; font-family: var(--pt-font); color: var(--pt-text);
  background: #fff; transition: border-color .15s;
  width: 100%;
}
.pt-field input:focus,
.pt-field select:focus,
.pt-field textarea:focus { outline: none; border-color: var(--pt-primary); box-shadow: 0 0 0 3px rgba(177,96,43,.12); }
.pt-field textarea { resize: vertical; min-height: 90px; }

.pt-form-row { display: flex; gap: 16px; }
.pt-form-row-2 > * { flex: 1; min-width: 0; }

.pt-form-section { margin-bottom: 28px; }
.pt-form-section h3 { font-size: 15px; font-weight: 700; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--pt-border); color: var(--pt-text); }

.pt-form-notice {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--pt-primary-lt); color: var(--pt-primary);
  padding: 12px 16px; border-radius: var(--pt-radius); font-size: 13px;
  margin-bottom: 20px;
}
.pt-form-notice svg { flex-shrink: 0; margin-top: 2px; }

/* ── Card ── */
.pt-card {
  background: var(--pt-white); border-radius: var(--pt-radius-lg);
  border: 1px solid var(--pt-border); padding: 32px;
  box-shadow: var(--pt-shadow);
}
.pt-card-header { margin-bottom: 28px; }
.pt-card-header h2 { margin: 0 0 8px; font-family: var(--pt-font-serif); font-size: 26px; color: var(--pt-text); }
.pt-card-header p  { margin: 0; color: var(--pt-muted); font-size: 15px; }

/* ── Application page ── */
.pt-application-card { max-width: 760px; margin: 40px auto; }

.pt-tiers-preview {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px;
  padding: 16px 20px; background: var(--pt-bg); border-radius: var(--pt-radius); border: 1px solid var(--pt-border);
}
.pt-tier-chip {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pt-muted);
}
.pt-tier-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .5px;
}

/* ── Login page ── */
.pt-login-wrap {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  background: var(--pt-bg); padding: 40px 20px;
}
.pt-login-card {
  background: var(--pt-white); border-radius: var(--pt-radius-lg);
  border: 1px solid var(--pt-border); box-shadow: var(--pt-shadow-md);
  padding: 48px 40px; width: 100%; max-width: 420px;
}
.pt-login-brand { text-align: center; margin-bottom: 32px; }
.pt-login-brand h1 { font-family: var(--pt-font-serif); font-size: 24px; margin: 12px 0 4px; color: var(--pt-text); }
.pt-login-brand p  { margin: 0; color: var(--pt-muted); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.pt-brand-icon { display: flex; justify-content: center; }

.pt-password-wrap { position: relative; }
.pt-password-wrap input { padding-right: 44px; }
.pt-toggle-pw {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--pt-muted); padding: 0; line-height: 0;
}
.pt-toggle-pw:hover { color: var(--pt-primary); }

.pt-login-options {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; margin-bottom: 20px;
}
.pt-checkbox-label { display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--pt-muted); }
.pt-forgot-link { color: var(--pt-primary); text-decoration: none; }
.pt-forgot-link:hover { text-decoration: underline; }

.pt-login-footer {
  text-align: center; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--pt-border); font-size: 13px; color: var(--pt-muted);
}
.pt-login-footer a { color: var(--pt-primary); text-decoration: none; font-weight: 600; }

/* ── Portal layout ── */
.pt-portal-wrap {
  display: grid; grid-template-columns: 240px 1fr; min-height: 90vh;
  background: var(--pt-bg); position: relative;
}

/* Sidebar */
.pt-sidebar {
  background: var(--pt-white); border-right: 1px solid var(--pt-border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.pt-sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px; border-bottom: 1px solid var(--pt-border);
  font-family: var(--pt-font-serif); font-size: 15px; font-weight: 700; color: var(--pt-text);
}
.pt-nav { list-style: none; margin: 0; padding: 16px 0; flex: 1; }
.pt-nav li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; color: var(--pt-muted); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: all .15s; border-radius: 0;
}
.pt-nav li a:hover { color: var(--pt-primary); background: var(--pt-primary-lt); }
.pt-nav li.active a { color: var(--pt-primary); background: var(--pt-primary-lt); font-weight: 600; border-right: 3px solid var(--pt-primary); }

.pt-sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--pt-border); }
.pt-user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pt-user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--pt-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.pt-user-name    { font-size: 13px; font-weight: 600; }
.pt-user-company { font-size: 11px; color: var(--pt-muted); }
.pt-logout-btn {
  width: 100%; padding: 8px; border-radius: var(--pt-radius);
  border: 1.5px solid var(--pt-border); background: transparent;
  color: var(--pt-muted); font-size: 13px; cursor: pointer; transition: all .15s;
}
.pt-logout-btn:hover { border-color: var(--pt-error); color: var(--pt-error); }

/* Main content */
.pt-main { padding: 32px; overflow-y: auto; }

.pt-page-header { margin-bottom: 28px; }
.pt-page-header h2 { margin: 0 0 4px; font-size: 24px; font-family: var(--pt-font-serif); }
.pt-page-header p  { margin: 0; color: var(--pt-muted); font-size: 14px; }

.pt-mobile-nav-toggle { display: none; }

/* Stats grid */
.pt-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px;
}
.pt-stat-card {
  background: var(--pt-white); border: 1px solid var(--pt-border); border-radius: var(--pt-radius);
  padding: 20px; box-shadow: var(--pt-shadow);
}
.pt-stat-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  color: #fff; font-size: 11px; font-weight: 700; margin-bottom: 8px;
}
.pt-stat-value { font-size: 22px; font-weight: 700; color: var(--pt-text); line-height: 1.2; }
.pt-stat-label { font-size: 12px; color: var(--pt-muted); margin-top: 4px; }

/* Section */
.pt-section { margin-bottom: 28px; }
.pt-section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.pt-section-header h3 { margin: 0; font-size: 16px; }
.pt-link { color: var(--pt-primary); font-size: 13px; text-decoration: none; font-weight: 600; }
.pt-link:hover { text-decoration: underline; }

/* Table */
.pt-table-wrap { overflow-x: auto; border-radius: var(--pt-radius); border: 1px solid var(--pt-border); }
.pt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pt-table th {
  background: var(--pt-bg); padding: 10px 14px; text-align: left;
  font-size: 12px; font-weight: 600; color: var(--pt-muted); text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--pt-border);
}
.pt-table td { padding: 12px 14px; border-bottom: 1px solid #f0ece8; vertical-align: middle; }
.pt-table tr:last-child td { border-bottom: none; }
.pt-table tr:hover td { background: var(--pt-bg); }
.pt-ellipsis { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Status badges */
.pt-status {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; text-transform: capitalize;
}
.pt-status-pending     { background: #FFF3E0; color: #E65100; }
.pt-status-processing  { background: #E3F2FD; color: #1565C0; }
.pt-status-fulfilled   { background: #E8F5E9; color: #2E7D32; }
.pt-status-approved    { background: #E8F5E9; color: #2E7D32; }
.pt-status-declined    { background: #FFEBEE; color: #C62828; }
.pt-status-cancelled   { background: #FAFAFA; color: #757575; }
.pt-status-shipped     { background: #E8F5E9; color: #2E7D32; }

/* Empty state */
.pt-empty-state {
  text-align: center; padding: 60px 20px; color: var(--pt-muted);
}
.pt-empty-state svg { margin-bottom: 16px; opacity: .4; }
.pt-empty-state a { color: var(--pt-primary); }

/* Logo upload + canvas preview */
.pt-logo-section { margin-bottom: 28px; }
.pt-logo-section h3 { margin: 0 0 6px; font-size: 16px; }
.pt-logo-section > p { margin: 0 0 16px; color: var(--pt-muted); font-size: 14px; }

.pt-logo-upload-row { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }

.pt-dropzone {
  flex: 0 0 260px; min-height: 160px; border: 2px dashed var(--pt-border);
  border-radius: var(--pt-radius-lg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  padding: 24px; cursor: pointer; transition: all .2s; text-align: center;
  position: relative; background: var(--pt-bg);
}
.pt-dropzone:hover, .pt-dropzone.drag-over {
  border-color: var(--pt-primary); background: var(--pt-primary-lt);
}
.pt-dropzone p { margin: 0; font-size: 13px; color: var(--pt-muted); }
.pt-dropzone p span { color: var(--pt-primary); font-weight: 600; }
.pt-dropzone-hint { font-size: 11px !important; }
.pt-dropzone-replace { font-size: 11px !important; }
.pt-file-hidden { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.pt-uploaded-logo-preview { max-width: 120px; max-height: 80px; object-fit: contain; border-radius: 4px; }

.pt-canvas-preview-wrap { flex: 1; min-width: 200px; }
.pt-canvas-label { font-size: 12px; font-weight: 600; color: var(--pt-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.pt-canvas-frame {
  position: relative; border-radius: var(--pt-radius); overflow: hidden;
  border: 1px solid var(--pt-border); box-shadow: var(--pt-shadow);
  max-width: 400px; background: #f5f5f5;
}
.pt-canvas-base { width: 100%; display: block; }
.pt-canvas-logo {
  position: absolute; top: 12%; left: 8%; width: 22%; height: 18%;
  object-fit: contain; opacity: .85;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.pt-canvas-caption { font-size: 11px; color: var(--pt-muted); margin-top: 6px; }

/* Cart bar */
.pt-cart-bar {
  position: sticky; top: 0; z-index: 100;
  background: var(--pt-text); color: #fff;
  border-radius: var(--pt-radius-lg); padding: 12px 20px;
  margin-bottom: 24px; box-shadow: var(--pt-shadow-md);
}
.pt-cart-bar-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pt-cart-summary { flex: 1; font-size: 15px; font-weight: 600; }
.pt-cart-min { font-size: 12px; color: #ffb74d; }

/* Products */
.pt-products-toolbar { margin-bottom: 16px; }
.pt-loading-state { display: flex; align-items: center; gap: 10px; color: var(--pt-muted); font-size: 14px; padding: 24px 0; }
.pt-spinner {
  width: 20px; height: 20px; border: 2px solid var(--pt-border);
  border-top-color: var(--pt-primary); border-radius: 50%; animation: pt-spin .7s linear infinite;
}
@keyframes pt-spin { to { transform: rotate(360deg); } }

.pt-products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
  margin-bottom: 24px;
}
.pt-product-card {
  background: var(--pt-white); border: 1px solid var(--pt-border); border-radius: var(--pt-radius-lg);
  overflow: hidden; box-shadow: var(--pt-shadow); transition: transform .15s, box-shadow .15s;
}
.pt-product-card:hover { transform: translateY(-2px); box-shadow: var(--pt-shadow-md); }
.pt-product-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f5f5f5; display: block; }
.pt-product-img-placeholder { width: 100%; aspect-ratio: 1; background: var(--pt-bg); display: flex; align-items: center; justify-content: center; color: var(--pt-border); }
.pt-product-body { padding: 14px; }
.pt-product-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-product-prices { display: flex; gap: 8px; align-items: baseline; margin-bottom: 12px; }
.pt-product-ws-price { font-size: 16px; font-weight: 700; color: var(--pt-primary); }
.pt-product-retail   { font-size: 12px; color: var(--pt-muted); text-decoration: line-through; }
.pt-product-qty {
  display: flex; align-items: center; gap: 6px; width: 100%;
}
.pt-qty-btn {
  width: 28px; height: 28px; border: 1.5px solid var(--pt-border); border-radius: 6px;
  background: var(--pt-bg); font-size: 16px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s;
}
.pt-qty-btn:hover { border-color: var(--pt-primary); color: var(--pt-primary); }
.pt-qty-input {
  width: 50px; text-align: center; border: 1.5px solid var(--pt-border); border-radius: 6px;
  padding: 4px; font-size: 14px;
}
.pt-qty-input:focus { outline: none; border-color: var(--pt-primary); }
.pt-add-to-cart {
  width: 100%; padding: 8px; background: var(--pt-primary); color: #fff;
  border: none; border-radius: var(--pt-radius); font-size: 13px; font-weight: 600;
  cursor: pointer; margin-top: 10px; transition: background .15s;
}
.pt-add-to-cart:hover { background: var(--pt-primary-dk); }
.pt-add-to-cart.in-cart { background: var(--pt-success); }

.pt-products-pagination { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 12px 0 28px; }
#pt-page-label { font-size: 14px; color: var(--pt-muted); }

/* Modal */
.pt-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
}
.pt-modal {
  background: var(--pt-white); border-radius: var(--pt-radius-lg);
  width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0,0,0,.2);
}
.pt-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--pt-border);
}
.pt-modal-header h3 { margin: 0; font-size: 18px; }
.pt-modal-close {
  background: none; border: none; font-size: 24px; cursor: pointer;
  color: var(--pt-muted); line-height: 1; padding: 0;
}
.pt-modal-close:hover { color: var(--pt-text); }
.pt-modal-body { padding: 20px 24px; }
.pt-modal-footer {
  padding: 16px 24px; border-top: 1px solid var(--pt-border);
  display: flex; justify-content: flex-end; gap: 12px;
}
.pt-modal-body .pt-field { margin-bottom: 12px; }

.pt-order-summary-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--pt-border);
}
.pt-order-summary-item:last-of-type { border-bottom: none; }
.pt-order-summary-img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; background: #f5f5f5; flex-shrink: 0; }
.pt-order-summary-meta { flex: 1; }
.pt-order-summary-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.pt-order-summary-detail { font-size: 12px; color: var(--pt-muted); }
.pt-order-summary-price { font-size: 13px; font-weight: 600; color: var(--pt-primary); text-align: right; }

.pt-order-total-row { margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--pt-border); }
.pt-order-total-line { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.pt-order-total-line.big { font-weight: 700; font-size: 15px; }
.pt-order-total-line .discount { color: var(--pt-success); }

/* Account page */
.pt-account-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pt-account-detail { display: flex; flex-direction: column; gap: 4px; }
.pt-account-detail label { font-size: 12px; font-weight: 600; color: var(--pt-muted); text-transform: uppercase; letter-spacing: .5px; }
.pt-account-detail span { font-size: 14px; }
.pt-tier-badge-lg {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  color: #fff; font-size: 13px; font-weight: 700;
}

.pt-tier-progress { display: flex; flex-direction: column; gap: 16px; }
.pt-tier-step {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: var(--pt-radius); border: 1.5px solid var(--pt-border);
  transition: all .15s;
}
.pt-tier-step.active { border-color: var(--pt-primary); background: var(--pt-primary-lt); }
.pt-tier-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.pt-tier-step-info { display: flex; flex-direction: column; gap: 2px; }
.pt-tier-step-info strong { font-size: 14px; }
.pt-tier-step-info span { font-size: 12px; color: var(--pt-muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .pt-portal-wrap { grid-template-columns: 1fr; }

  .pt-sidebar {
    position: fixed; left: -260px; top: 0; bottom: 0; width: 240px;
    z-index: 200; transition: left .25s; box-shadow: var(--pt-shadow-md);
  }
  .pt-sidebar.open { left: 0; }

  .pt-mobile-nav-toggle {
    display: flex; flex-direction: column; gap: 5px; justify-content: center;
    position: fixed; top: 16px; left: 16px; z-index: 201;
    width: 40px; height: 40px; background: var(--pt-white);
    border: 1.5px solid var(--pt-border); border-radius: 8px;
    cursor: pointer; padding: 8px;
  }
  .pt-mobile-nav-toggle span {
    display: block; height: 2px; background: var(--pt-text); border-radius: 2px;
    transition: all .2s;
  }

  .pt-main { padding: 20px 16px; padding-top: 64px; }

  .pt-stats-grid { grid-template-columns: 1fr 1fr; }
  .pt-form-row { flex-direction: column; }
  .pt-logo-upload-row { flex-direction: column; }
  .pt-dropzone { flex: none; width: 100%; }
  .pt-login-card { padding: 32px 24px; }
  .pt-application-card { margin: 20px auto; }
  .pt-card { padding: 20px; }
  .pt-account-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .pt-stats-grid { grid-template-columns: 1fr; }
  .pt-products-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════
   PAGE LOGO HEADER
   Appears at the top of application form, login page, and portal main
══════════════════════════════════════════════════════════════════════ */

.pt-page-logo-header {
  background: #FAF8F4;
  text-align: center;
  padding: 24px 20px 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid #E0DBD5;
  border-radius: var(--pt-radius-lg) var(--pt-radius-lg) 0 0;
}
/* When it's the first child of a card-less page, remove border-radius */
.pt-wrap > .pt-page-logo-header {
  border-radius: 0;
  margin-bottom: 0;
}
.pt-header-logo-img {
  max-height: 80px;
  max-width: 300px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
.pt-header-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--pt-font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--pt-text);
}
.pt-header-subtitle {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--pt-muted);
}
/* Inside the login card */
.pt-login-card .pt-page-logo-header {
  background: transparent;
  border-bottom: none;
  border-radius: 0;
  margin-bottom: 24px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--pt-border);
}
/* Inside the portal main — hidden on desktop (sidebar has the logo),
   visible on mobile as a compact top bar */
.pt-main .pt-page-logo-header {
  display: none;
}
@media (max-width: 768px) {
  .pt-main .pt-page-logo-header {
    display: block;
    border-radius: 0;
    padding: 14px 16px;
    margin-bottom: 20px;
  }
  .pt-main .pt-page-logo-header .pt-header-logo-img {
    max-height: 48px;
  }
  .pt-main .pt-page-logo-header .pt-header-subtitle {
    display: none;
  }
}

/* Sidebar logo image variant */
.pt-sidebar-brand--img {
  padding: 14px 16px;
  border-bottom: 1px solid var(--pt-border);
}
.pt-sidebar-logo-img {
  max-height: 52px;
  max-width: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ══════════════════════════════════════════════════════════════════════
   ORDER OPTIONS CARDS  (logo options + design selection)
══════════════════════════════════════════════════════════════════════ */

.pt-order-options-card {
  margin-bottom: 20px;
}
.pt-order-options-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}
.pt-option-intro {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--pt-muted);
}

/* Radio card group */
.pt-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pt-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--pt-border);
  border-radius: var(--pt-radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.pt-radio-card:hover {
  border-color: var(--pt-primary);
  background: var(--pt-primary-lt);
}
.pt-radio-card--selected,
.pt-radio-card:has(input:checked) {
  border-color: var(--pt-primary);
  background: var(--pt-primary-lt);
}
.pt-radio-card input[type="radio"] {
  /* visually hidden — replaced by custom indicator */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.pt-radio-indicator {
  width: 18px;
  height: 18px;
  border: 2px solid var(--pt-border);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  transition: border-color .15s, background .15s;
  position: relative;
}
.pt-radio-card:has(input:checked) .pt-radio-indicator {
  border-color: var(--pt-primary);
  background: var(--pt-primary);
  box-shadow: inset 0 0 0 3px #fff;
}
.pt-radio-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pt-radio-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--pt-text);
}
.pt-radio-desc {
  font-size: 12px;
  color: var(--pt-muted);
  line-height: 1.5;
}

/* Small dropzone variant inside logo options */
.pt-dropzone--sm {
  min-height: 120px;
  max-width: 320px;
}
.pt-dropzone--sm p {
  font-size: 13px;
}

/* Curated collection note */
.pt-curated-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  background: #EEF9F0;
  border: 1px solid #A5D6A7;
  border-radius: var(--pt-radius);
  font-size: 13px;
  color: #2E7D32;
  line-height: 1.5;
}
.pt-curated-note svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Selected design chips */
#pt-selected-designs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.pt-design-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 12px;
  background: var(--pt-primary-lt);
  border: 1.5px solid var(--pt-primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pt-primary);
}
.pt-design-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pt-primary);
  font-size: 16px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: .7;
}
.pt-design-chip-remove:hover { opacity: 1; }

/* Design paste field sits inside .pt-field — inherits standard field styles */
#pt-design-paste { min-height: 80px; }

/* Order confirm modal — logo + design summary */
.pt-order-options-summary {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--pt-bg);
  border-radius: var(--pt-radius);
  border: 1px solid var(--pt-border);
}
.pt-order-opt-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 3px 0;
}
.pt-order-opt-line span:first-child {
  color: var(--pt-muted);
  font-weight: 600;
  min-width: 70px;
}
