/* ATG Delivery Proof 0.8.3 – standalone driver app */
html { min-height: 100%; }
body.atgdp-driver-app {
  --atgdp-background: #f5f6f7;
  --atgdp-surface: #ffffff;
  --atgdp-surface-muted: #f6f7f7;
  --atgdp-border: #dcdcde;
  --atgdp-text: #171717;
  --atgdp-muted: #666666;
  --atgdp-primary: #d60000;
  --atgdp-primary-dark: #a90000;
  --atgdp-success: #279600;
  --atgdp-danger: #8d1111;
  --atgdp-radius: 16px;
  --atgdp-radius-sm: 8px;
  --atgdp-shadow: 0 8px 28px rgba(0, 0, 0, .07);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--atgdp-text, #171717);
  background: var(--atgdp-background, #f5f6f7);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.atgdp-driver-app * { box-sizing: border-box; }
body.atgdp-driver-app .atgdp-driver-app-shell,
body.atgdp-driver-app .atgdp-driver { width: 100%; min-height: 100vh; }

/* Defensive fallback for Woodmart/theme elements emitted through wp_head/wp_footer hooks. */
body.atgdp-driver-app .whb-header,
body.atgdp-driver-app .whb-main-header,
body.atgdp-driver-app .whb-top-bar,
body.atgdp-driver-app .whb-general-header,
body.atgdp-driver-app .whb-header-bottom,
body.atgdp-driver-app header.whb-header,
body.atgdp-driver-app footer,
body.atgdp-driver-app .wd-footer,
body.atgdp-driver-app .footer-container,
body.atgdp-driver-app .site-footer,
body.atgdp-driver-app .wd-toolbar,
body.atgdp-driver-app .wd-toolbar-label-show,
body.atgdp-driver-app .wd-toolbar-item,
body.atgdp-driver-app .wd-toolbar-side-hidden,
body.atgdp-driver-app .wd-header-cart,
body.atgdp-driver-app .wd-header-my-account,
body.atgdp-driver-app .wd-header-wishlist,
body.atgdp-driver-app .wd-tools-element,
body.atgdp-driver-app .wd-tools-cart,
body.atgdp-driver-app .wd-tools-account,
body.atgdp-driver-app .wd-tools-wishlist,
body.atgdp-driver-app .wd-header-search,
body.atgdp-driver-app .wd-header-nav,
body.atgdp-driver-app .wd-breadcrumbs,
body.atgdp-driver-app .page-title,
body.atgdp-driver-app #wpadminbar { display: none !important; }
body.atgdp-driver-app .main-page-wrapper,
body.atgdp-driver-app .site-content,
body.atgdp-driver-app .content-layout-wrapper,
body.atgdp-driver-app .elementor-location-header,
body.atgdp-driver-app .elementor-location-footer { margin: 0 !important; padding: 0 !important; max-width: none !important; }

.atgdp-driver { color: var(--atgdp-text, #171717); background: var(--atgdp-background, #f5f6f7); }
.atgdp-shell { width: min(100%, 980px); min-height: 100vh; margin: 0 auto; padding: 18px 14px 96px; }
.atgdp-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.atgdp-app-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.atgdp-app-brand img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 48px; }
.atgdp-topbar h1,
.atgdp-card h2,
.atgdp-section h2,
.atgdp-task-card h3,
.atgdp-delivery-card h3 { margin: 0; line-height: 1.2; color: var(--atgdp-text, #171717); }
.atgdp-topbar h1 { font-size: clamp(22px, 6vw, 36px); }
.atgdp-kicker,
.atgdp-order { display: block; color: var(--atgdp-primary, #d60000); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.atgdp-logout-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 11px; border: 1px solid var(--atgdp-border, #dcdcde); border-radius: 9px; background: var(--atgdp-surface, #fff); color: var(--atgdp-text, #171717) !important; font-size: 13px; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.atgdp-logout-button:hover,
.atgdp-logout-button:focus-visible { border-color: var(--atgdp-primary, #d60000); outline: 3px solid rgba(214, 0, 0, .16); outline-offset: 2px; }

.atgdp-card,
.atgdp-delivery-card,
.atgdp-task-card { background: var(--atgdp-surface, #fff); border: 1px solid var(--atgdp-border, #dcdcde); border-radius: var(--atgdp-radius, 16px); box-shadow: var(--atgdp-shadow, 0 8px 28px rgba(0, 0, 0, .07)); }
.atgdp-card { padding: 18px; margin-bottom: 16px; }
.atgdp-btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 16px; background: var(--atgdp-primary, #d60000); color: #fff !important; font-weight: 800; text-decoration: none !important; cursor: pointer; line-height: 1.2; }
.atgdp-btn:hover,
.atgdp-btn:focus-visible { background: var(--atgdp-primary-dark, #a90000); outline: 3px solid rgba(214, 0, 0, .22); outline-offset: 2px; }
.atgdp-btn:disabled { opacity: .45; cursor: not-allowed; }
.atgdp-btn-secondary { background: #222; }
.atgdp-btn-ghost { background: var(--atgdp-surface, #fff); color: var(--atgdp-text, #171717) !important; border: 1px solid var(--atgdp-border, #dcdcde); }
.atgdp-btn-danger { background: var(--atgdp-danger, #8d1111); }
.atgdp-btn-large { width: 100%; min-height: 56px; font-size: 16px; }

.atgdp-driver-login-card { width: min(100%, 440px); margin: clamp(20px, 7vh, 72px) auto 0; padding: 24px; }
.atgdp-driver-login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--atgdp-muted, #666); font-size: 13px; font-weight: 800; }
.atgdp-driver-login-logo img { width: 72px; height: 48px; object-fit: contain; }
.atgdp-driver-login-card > p { color: var(--atgdp-muted, #666); }
.atgdp-driver-login-card form { display: grid; gap: 14px; margin-top: 20px; }
.atgdp-driver-login-card form p { margin: 0; }
.atgdp-driver-login-card form label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; color: var(--atgdp-text, #171717); }
.atgdp-driver-login-card form input[type="text"],
.atgdp-driver-login-card form input[type="password"] { width: 100%; min-height: 50px; padding: 10px 12px; border: 1px solid var(--atgdp-border, #dcdcde); border-radius: 10px; background: var(--atgdp-surface, #fff); color: var(--atgdp-text, #171717); font: inherit; }
.atgdp-driver-login-card form input:focus { border-color: var(--atgdp-primary, #d60000); outline: 3px solid rgba(214, 0, 0, .16); }
.atgdp-driver-login-card .login-submit input { width: 100%; min-height: 50px; border: 0; border-radius: 11px; background: var(--atgdp-primary, #d60000); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.atgdp-driver-login-card .login-remember { display: none; }
.atgdp-lost-password { display: inline-block; margin-top: 16px; color: var(--atgdp-text, #171717); font-size: 14px; font-weight: 700; }

.atgdp-privacy,
.atgdp-notice { border-radius: 12px; padding: 13px 14px; margin-bottom: 16px; font-size: 14px; }
.atgdp-privacy { background: #fff7e6; border: 1px solid #f0d595; }
.atgdp-notice-success { background: #eaf7e6; border: 1px solid #a8d79a; }
.atgdp-notice-error { background: #fff0f0; border: 1px solid #e7aaaa; }
.atgdp-notice-info { background: #eef5ff; border: 1px solid #b5cae8; }
.atgdp-section { margin: 22px 0; }
.atgdp-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.atgdp-section-title span { min-width: 34px; min-height: 34px; border-radius: 999px; display: grid; place-items: center; background: #222; color: #fff; font-weight: 800; }
.atgdp-delivery-grid { display: grid; gap: 14px; }
.atgdp-delivery-card { padding: 17px; }
.atgdp-delivery-card-head,
.atgdp-task-head,
.atgdp-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.atgdp-delivery-card h3 { font-size: 20px; margin-top: 3px; }
.atgdp-status { display: inline-flex; align-items: center; min-height: 30px; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.atgdp-status-success { background: #e7f7e1; color: #1b6d00; }
.atgdp-status-warning { background: #fff2d9; color: #7a4b00; }
.atgdp-status-danger { background: #ffe4e4; color: #850000; }
.atgdp-status-info { background: #e8f1ff; color: #164b8b; }
.atgdp-status-neutral { background: #eee; color: #444; }
.atgdp-address { margin: 13px 0; color: #333; line-height: 1.55; }
.atgdp-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--atgdp-muted, #666); font-size: 13px; }
.atgdp-problem-flag { color: #9d0000; font-weight: 800; }
.atgdp-progress { height: 10px; overflow: hidden; border-radius: 999px; background: #ececec; margin-top: 14px; }
.atgdp-progress span { display: block; height: 100%; background: var(--atgdp-success, #279600); border-radius: inherit; transition: width .2s ease; }
.atgdp-progress-large { height: 14px; }
.atgdp-progress-label { margin: 7px 0 14px; font-size: 13px; color: var(--atgdp-muted, #666); }
.atgdp-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
.atgdp-back { display: inline-block; margin: 0 0 14px; color: var(--atgdp-text, #171717); font-weight: 800; text-decoration: none; }
.atgdp-detail-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.atgdp-detail-hero h2 { font-size: clamp(24px, 6vw, 34px); margin-top: 4px; }
.atgdp-start-card { border-left: 5px solid var(--atgdp-success, #279600); }
.atgdp-start-card p { color: var(--atgdp-muted, #666); }
.atgdp-task-list { display: grid; gap: 12px; }
.atgdp-task-card { padding: 16px; }
.atgdp-task-card.is-done { border-color: #a8d79a; }
.atgdp-task-check { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #eee; font-weight: 900; }
.atgdp-task-card.is-done .atgdp-task-check { background: var(--atgdp-success, #279600); color: #fff; }
.atgdp-task-head h3 { font-size: 18px; }
.atgdp-task-head p { margin: 4px 0 0; color: var(--atgdp-muted, #666); font-size: 13px; }
.atgdp-required { margin-left: auto; color: var(--atgdp-primary, #d60000); font-size: 12px; font-weight: 900; }
.atgdp-optional { margin-left: auto; color: var(--atgdp-muted, #666); font-size: 12px; font-weight: 800; }
.atgdp-media-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.atgdp-media-link { display: inline-flex; min-height: 40px; align-items: center; border-radius: 10px; background: var(--atgdp-surface-muted, #f6f7f7); padding: 8px 10px; color: var(--atgdp-text, #171717) !important; font-size: 13px; font-weight: 700; text-decoration: none !important; }
.atgdp-upload-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--atgdp-border, #dcdcde); }
.atgdp-file-label { min-height: 54px; display: flex; align-items: center; justify-content: center; border: 2px dashed #bbb; border-radius: 12px; padding: 12px; font-weight: 800; cursor: pointer; text-align: center; }
.atgdp-file-label input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.atgdp-file-info { min-height: 22px; margin: 8px 0; font-size: 13px; color: var(--atgdp-muted, #666); }
.atgdp-upload-progress { height: 9px; border-radius: 99px; overflow: hidden; background: #e9e9e9; margin: 8px 0 12px; }
.atgdp-upload-progress span { display: block; height: 100%; width: 0; background: var(--atgdp-success, #279600); }
.atgdp-upload-preview { margin-top: 12px; border: 1px solid var(--atgdp-border, #dcdcde); border-radius: var(--atgdp-radius-sm, 8px); background: var(--atgdp-surface-muted, #f6f7f7); overflow: hidden; max-height: 280px; }
.atgdp-upload-preview img,
.atgdp-upload-preview video { display: block; width: 100%; max-height: 280px; object-fit: contain; background: #111; }
.atgdp-tools-grid { display: grid; gap: 13px; margin: 18px 0; }
.atgdp-tools-grid details { padding: 0; overflow: hidden; }
.atgdp-tools-grid summary { min-height: 56px; display: flex; align-items: center; padding: 16px 18px; font-weight: 900; cursor: pointer; }
.atgdp-tools-grid details[open] summary { border-bottom: 1px solid var(--atgdp-border, #dcdcde); }
.atgdp-form { display: grid; gap: 14px; padding: 18px; }
.atgdp-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }
.atgdp-form input,
.atgdp-form select,
.atgdp-form textarea { width: 100%; min-height: 48px; border: 1px solid var(--atgdp-border, #dcdcde); border-radius: 10px; padding: 10px 12px; background: var(--atgdp-surface, #fff); color: var(--atgdp-text, #171717); font: inherit; }
.atgdp-form textarea { min-height: 104px; resize: vertical; }
.atgdp-form input:focus,
.atgdp-form select:focus,
.atgdp-form textarea:focus { outline: 3px solid rgba(214, 0, 0, .16); border-color: var(--atgdp-primary, #d60000); }
.atgdp-two { display: grid; grid-template-columns: 1fr; gap: 12px; }
.atgdp-checkbox { display: flex !important; align-items: center; gap: 8px; }
.atgdp-checkbox input { width: 22px; min-height: 22px; }
.atgdp-deposit-preview { display: grid; grid-template-columns: 72px 1fr; gap: 6px 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--atgdp-surface-muted, #f6f7f7); }
.atgdp-deposit-preview img { grid-row: 1 / 3; width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: var(--atgdp-surface, #fff); }
.atgdp-balance { padding: 12px; border-radius: 10px; background: #eef5ff; font-weight: 800; }
.atgdp-problem-card { border-left: 5px solid var(--atgdp-primary, #d60000); }
.atgdp-records { display: grid; gap: 10px; }
.atgdp-records > div { display: grid; gap: 3px; padding: 11px; border-radius: 10px; background: var(--atgdp-surface-muted, #f6f7f7); }
.atgdp-records span { color: var(--atgdp-muted, #666); font-size: 14px; }
.atgdp-missing { background: #fff2f2; border: 1px solid #e9b1b1; border-radius: 12px; padding: 13px; margin: 12px 0; }
.atgdp-missing ul { margin: 8px 0 0 18px; }
.atgdp-empty { text-align: center; padding: 34px 18px; }
.atgdp-empty p { color: var(--atgdp-muted, #666); }
.atgdp-profile-line { margin: 10px 0 2px; }
.atgdp-profile-badge { display: inline-flex; align-items: center; min-height: 30px; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 900; line-height: 1.25; }
.atgdp-profile-badge.is-key-access { background: #fff2d9; color: #754600; border: 1px solid #e8c777; }
.atgdp-profile-badge.is-standard { background: #edf6ff; color: #174f84; border: 1px solid #b6d0e8; }
.atgdp-profile-notice { margin-top: -4px; }
.atgdp-task-card.is-pending { border-color: var(--atgdp-border, #dcdcde); }
.atgdp-task-validation { margin-top: 7px !important; font-weight: 700; }
.atgdp-task-validation.is-valid { color: #1b6d00 !important; }
.atgdp-task-validation.is-invalid { color: #8a2424 !important; }
.atgdp-complete-question { margin: 14px 0; padding: 12px; border-radius: var(--atgdp-radius-sm, 8px); background: var(--atgdp-surface-muted, #f6f7f7); }

@media (min-width: 640px) {
  .atgdp-shell { padding: 28px 22px 110px; }
  .atgdp-delivery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atgdp-actions { grid-template-columns: 1fr 1fr; }
  .atgdp-two { grid-template-columns: 1fr 1fr; }
  .atgdp-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .atgdp-delivery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .atgdp-app-brand img { width: 40px; height: 40px; flex-basis: 40px; }
  .atgdp-topbar h1 { font-size: 22px; }
  .atgdp-kicker { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .atgdp-driver * { scroll-behavior: auto !important; transition: none !important; }
}
