/**
 * My Account Styles
 * EpicDecks design - blue accent #3BC1F4
 */

/* ============================================
   WRAPPER
   ============================================ */

.epicdecks-account-wrapper {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 0 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.epicdecks-account-wrapper *,
.epicdecks-account-wrapper *::before,
.epicdecks-account-wrapper *::after {
    box-sizing: border-box;
}

/* ============================================
   LOGIN / REGISTER
   ============================================ */

.epicdecks-login-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 800px;
    margin: 60px auto;
}

.epicdecks-login-single {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.epicdecks-login-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    width: 100%;
}

.epicdecks-register-box {
    max-width: 100%;
}

/* Registration container - wider and closer to header */
.epicdecks-register-container {
    max-width: 750px;
    margin: 20px auto;
}

.epicdecks-login-box h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #111827;
}

.login-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3BC1F4;
    box-shadow: 0 0 0 3px rgba(59,193,244,0.12);
}

.req {
    color: #ef4444;
}

.form-row-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3BC1F4;
}

.lost-password-link {
    font-size: 13px;
    color: #3BC1F4;
    text-decoration: none;
}

.lost-password-link:hover {
    text-decoration: underline;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #3BC1F4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    background: #2aa5d1;
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

.register-note {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 12px;
    text-align: center;
}

/* Login → Register link */
.login-register-link {
    margin-top: 20px;
    text-align: center;
}

.login-register-link span {
    display: block;
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 10px;
}

/* Secondary button - same style as primary */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #3BC1F4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #2aa5d1;
    transform: translateY(-1px);
    color: #fff;
}

/* ============================================
   FULL REGISTRATION FORM
   ============================================ */

.epicdecks-register-full-form {
    margin-top: 8px;
}

.reg-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.reg-section:last-child,
.reg-section-submit {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.reg-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
}

.reg-section-title svg {
    color: #3BC1F4;
    flex-shrink: 0;
}

/* Phone input row */
.phone-input-row {
    display: flex;
    gap: 8px;
}

.form-input-prefix {
    width: 90px;
    flex-shrink: 0;
}

/* Field hint */
.field-hint {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Registration errors */
.reg-errors {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.reg-errors p {
    font-size: 14px;
    color: #dc2626;
    margin: 4px 0;
}

.reg-errors a {
    color: #3BC1F4;
    font-weight: 600;
}

/* Shipping toggle fields */
.reg-shipping-fields,
.reg-company-fields {
    margin-top: 16px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

/* Login link text under register */
.login-link-text {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-top: 16px;
}

.login-link-text a {
    color: #3BC1F4;
    font-weight: 600;
    text-decoration: none;
}

.login-link-text a:hover {
    text-decoration: underline;
}

/* ============================================
   ACCOUNT HEADER
   ============================================ */

.epicdecks-account-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.account-avatar-initials {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #3BC1F4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 1px;
}

.account-info h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: #111827;
}

.account-greeting {
    font-size: 15px;
    color: #6b7280;
    margin: 4px 0 0;
}

.account-greeting strong {
    color: #111827;
}

/* ============================================
   ACCOUNT LAYOUT
   ============================================ */

.epicdecks-account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

/* ============================================
   SIDEBAR NAV
   ============================================ */

.epicdecks-account-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: calc(var(--ed-masthead-h, 121px) + var(--wp-admin--admin-bar--height, 0px) + 16px);
    align-self: start;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.15s;
}

.account-nav-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.account-nav-item.is-active {
    background: #eaf8fd;
    color: #3BC1F4;
}

.account-nav-item svg {
    flex-shrink: 0;
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.dashboard-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111827;
}

.dashboard-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #111827;
}

.dashboard-card p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.dashboard-card--welcome {
    background: linear-gradient(135deg, #eaf8fd 0%, #f0fdf4 100%);
    border-color: #3BC1F4;
}

/* Stats */
.stats-grid {
    display: flex;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #3BC1F4;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
}

/* Card header row */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header-row h3 {
    margin: 0;
}

.link-more {
    font-size: 13px;
    color: #3BC1F4;
    text-decoration: none;
    font-weight: 600;
}

.link-more:hover {
    text-decoration: underline;
}

/* Orders mini list */
.orders-mini-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.order-mini-row {
    display: grid;
    grid-template-columns: 80px 90px 140px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.order-mini-row:last-child {
    border-bottom: none;
}

.order-mini-row .order-status {
    justify-self: center !important;
    text-align: center !important;
    margin: 0 auto;
}

.order-num {
    font-weight: 700;
    color: #111827;
}

.order-date {
    color: #6b7280;
}

.order-total {
    font-weight: 600;
    color: #111827;
}

.order-detail-link {
    font-size: 13px;
    color: #3BC1F4;
    text-decoration: none;
    font-weight: 600;
}

.order-detail-link:hover {
    text-decoration: underline;
}

/* ============================================
   ORDER STATUS BADGES
   ============================================ */

.order-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
    min-width: 120px;
}

.status-processing { background: #dbeafe; color: #1e40af; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-on-hold { background: #fef3c7; color: #92400e; }
.status-pending { background: #f3f4f6; color: #6b7280; }
.status-cancelled { background: #fef2f2; color: #991b1b; }
.status-refunded { background: #ede9fe; color: #5b21b6; }
.status-failed { background: #fef2f2; color: #991b1b; }
.status-epicdecks-shipped { background: #dbeafe; color: #1e40af; }

/* ============================================
   ORDERS TABLE
   ============================================ */

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #111827;
}

.orders-table-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    background: #f9fafb;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.orders-table th:nth-child(3) {
    text-align: center;
}

.orders-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.orders-table td:nth-child(3) {
    text-align: center;
}

.orders-table tr:last-child td {
    border-bottom: none;
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-sm:hover {
    background: #3BC1F4;
    color: #fff;
    border-color: #3BC1F4;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #9ca3af;
}

.empty-state svg {
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 15px;
    margin: 0 0 20px;
}

.empty-message {
    font-size: 14px;
    color: #9ca3af;
    text-align: center;
    padding: 16px 0;
}

/* ============================================
   ORDER DETAIL
   ============================================ */

.order-detail-header {
    margin-bottom: 24px;
}

.back-link {
    font-size: 13px;
    color: #3BC1F4;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
}

.back-link:hover {
    text-decoration: underline;
}

.order-detail h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111827;
}

.order-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
}

.order-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.order-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #111827;
}

/* ============================================
   ORDER ITEMS - MODERN CARD LAYOUT
   ============================================ */

.order-items-modern {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.order-item-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.order-item-card:last-child {
    border-bottom: none;
}

.order-item-card__img {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.order-item-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.order-item-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-item-card__name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.order-item-card__name a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.order-item-card__name a:hover {
    color: #3BC1F4;
}

.order-item-card__meta {
    font-size: 13px;
    color: #6b7280;
}

.order-item-card__price {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    text-align: right;
    white-space: nowrap;
}

/* Summary rows below items */
.order-summary-rows {
    border-top: 2px solid #e5e7eb;
    margin-top: 4px;
    padding-top: 12px;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #374151;
}

.order-summary-row--discount span:last-child {
    color: #059669;
    font-weight: 600;
}

.order-summary-row--total {
    border-top: 2px solid #111827;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.order-summary-row--total span:last-child {
    font-size: 20px;
    color: #3BC1F4;
}

.order-summary-row--tax {
    padding-top: 4px;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

/* Mobile */
@media (max-width: 480px) {
    .order-item-card__img {
        width: 44px;
        height: 44px;
    }
    
    .order-item-card__name {
        font-size: 13px;
    }
    
    .order-item-card__meta {
        font-size: 12px;
    }
    
    .order-item-card__price {
        font-size: 14px;
    }
    
    .order-summary-row--total {
        font-size: 16px;
    }
    
    .order-summary-row--total span:last-child {
        font-size: 18px;
    }
}

/* Keep old table styles for backwards compat */
.order-items-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.order-items-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    padding: 8px 8px 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.order-items-table th:last-child,
.order-items-table td:last-child {
    text-align: right;
    padding-right: 0;
}

.order-items-table th:nth-child(1) { width: auto; }
.order-items-table th:nth-child(2) { width: 80px; text-align: center; }
.order-items-table th:nth-child(3) { width: 100px; text-align: right; }
.order-items-table th:nth-child(4) { width: 100px; text-align: right; }

.order-items-table td {
    padding: 10px 8px 10px 0;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.order-items-table td:nth-child(2) { text-align: center; }
.order-items-table td:nth-child(3) { text-align: right; }

.order-items-table tfoot td {
    font-size: 14px;
    padding: 8px 8px 8px 0;
    border-bottom: none;
    text-align: right;
}

.order-items-table tfoot td:first-child {
    text-align: right;
}

.order-items-table tfoot .total-row td {
    border-top: 2px solid #e5e7eb;
    padding-top: 12px;
    font-size: 16px;
}

.order-items-table tfoot .tax-row td {
    padding-top: 4px;
    border-top: none;
    font-size: 12px;
    color: #6b7280;
}

.order-items-table a {
    color: #3BC1F4;
    text-decoration: none;
}

.order-items-table a:hover {
    text-decoration: underline;
}

.order-addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.order-section address {
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
    font-style: normal;
}

/* ============================================
   EDIT ACCOUNT FORM
   ============================================ */

.edit-account-form {
    margin-bottom: 24px;
}

.form-section-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.form-section-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #111827;
}

.section-desc {
    font-size: 13px;
    color: #9ca3af;
    margin: -8px 0 16px;
}

.form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================
   DANGER ZONE
   ============================================ */

.danger-zone {
    border-color: #fca5a5;
    background: #fff5f5;
}

.danger-zone h3 {
    color: #dc2626;
}

.danger-zone p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #b91c1c;
}

.danger-text {
    font-size: 14px;
    font-weight: 600;
    color: #dc2626;
    margin: 16px 0 12px;
}

.delete-confirm-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.delete-confirm-row .form-input {
    max-width: 200px;
}

/* ============================================
   ADDRESSES
   ============================================ */

.addresses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ============================================
   WC NOTICES — styled to match EpicDecks
   ============================================ */

.woocommerce-message,
.woocommerce-info,
.epicdecks-notice-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
}

.woocommerce-error,
.epicdecks-notice-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #991b1b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
}

.woocommerce-info,
.epicdecks-notice-info {
    background: #eaf8fd;
    border: 1px solid #bae6fd;
    border-left: 4px solid #3BC1F4;
    color: #0c4a6e;
}

.woocommerce-error ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-error li {
    list-style: none;
}

.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
    display: none !important;
}

.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.error-message {
    color: #dc2626;
    font-weight: 600;
}

/* ============================================
   ORDERS TABLE FIX — no excess space
   ============================================ */

.epicdecks-account-content {
    min-height: 0;
}

.orders-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   NEWSLETTER TOGGLE (edit-account)
   ============================================ */

.newsletter-toggle-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 0;
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d1d5db;
    border-radius: 26px;
    transition: 0.25s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.25s;
}

.toggle-switch input:checked + .toggle-slider {
    background: #3BC1F4;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* ============================================
   ORDER INQUIRY FORM
   ============================================ */

.order-inquiry-section {
    margin-top: 24px;
    border-top: 2px solid #e5e7eb;
    padding-top: 24px;
}

.order-inquiry-form .form-field {
    margin-bottom: 14px;
}

.order-inquiry-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}

.order-inquiry-form .form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    transition: border-color 0.2s;
    font-family: inherit;
}

.order-inquiry-form .form-input:focus {
    border-color: #3BC1F4;
    box-shadow: 0 0 0 3px rgba(59,193,244,0.12);
}

.order-inquiry-form textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.epicdecks-notice {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.epicdecks-notice-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    color: #065f46;
}

/* ============================================
   MODAL (Forgot Password, etc.)
   ============================================ */

.epicdecks-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epicdecks-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.epicdecks-modal__content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.epicdecks-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s;
}

.epicdecks-modal__close:hover {
    color: #374151;
}

.epicdecks-modal__content h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    text-align: center;
}

.epicdecks-modal__content p {
    margin: 0 0 20px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.modal-icon {
    text-align: center;
    margin-bottom: 16px;
}

.epicdecks-notice {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.epicdecks-notice-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.epicdecks-notice-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ============================================
   ADDRESS - DIFFERENT SHIPPING TOGGLE
   ============================================ */

.different-shipping-toggle {
    margin: 16px 0;
    padding: 14px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.address-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    line-height: 1.2;
}

.address-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    accent-color: #3BC1F4;
    cursor: pointer;
    vertical-align: middle;
}

.address-checkbox-label span {
    display: inline-block;
    line-height: 1.3;
    margin-top: -1px;
}

.company-toggle-row {
    padding: 4px 0;
}

.account-company-fields {
    padding-top: 16px;
}

/* ============================================
   ORDER RECEIVED (Thank You) PAGE
   ============================================ */

.order-received-banner {
    text-align: center;
    padding: 40px 20px 32px;
    margin-bottom: 8px;
}

.order-received-icon {
    margin-bottom: 16px;
}

.order-received-banner h1 {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px;
}

.order-received-banner p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.order-received-banner p strong {
    color: #111827;
}

.order-received-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    padding-bottom: 20px;
}

.order-received-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #3BC1F4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.order-received-actions .btn-primary:hover {
    background: #1fa8db;
}

.order-received-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.order-received-actions .btn-secondary:hover {
    background: #e5e7eb;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .epicdecks-account-wrapper {
        padding: 20px 16px 40px;
    }
    
    .epicdecks-login-container {
        margin: 30px auto;
    }
    
    .epicdecks-login-box {
        padding: 24px 20px;
    }
    
    .epicdecks-account-layout {
        grid-template-columns: 1fr;
    }
    
    .epicdecks-account-nav {
        flex-direction: row;
        overflow-x: auto;
        position: static;
        gap: 2px;
    }
    
    .account-nav-item {
        white-space: nowrap;
        padding: 10px 14px;
    }
    
    .account-nav-item span {
        display: none;
    }
    
    .order-mini-row {
        grid-template-columns: 1fr 1fr;
        gap: 4px 8px;
    }
    
    .order-addresses {
        grid-template-columns: 1fr;
    }
    
    /* Mobile table: hide unit price column */
    .order-items-table th:nth-child(3),
    .order-items-table td:nth-child(3) {
        display: none;
    }
    
    .order-items-table th:nth-child(2) { width: 50px; }
    .order-items-table th:nth-child(4) { width: 90px; }
    
    .order-items-table td {
        font-size: 13px;
    }
    
    .addresses-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row-half {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   QR PLATBA - PŘEVODEM BOX
   ============================================ */

.qr-payment-box {
    background: #f0f9ff;
    border: 2px solid #3BC1F4;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
}

.qr-payment-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
}

.qr-payment-inner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.qr-payment-left {
    flex-shrink: 0;
    text-align: center;
}

.qr-payment-left img {
    display: block;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.qr-payment-left p {
    font-size: 12px;
    color: #6b7280;
    margin: 8px 0 0;
}

.qr-payment-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qr-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    gap: 12px;
}

.qr-detail-label {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

.qr-detail-value {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    word-break: break-all;
    text-align: right;
}

.qr-detail-row--total {
    background: #ecfeff;
    border-color: #3BC1F4;
}

.qr-detail-row--total .qr-detail-value {
    font-size: 16px;
    color: #3BC1F4;
}

.qr-payment-note {
    font-size: 13px;
    color: #374151;
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px solid #bae6fd;
}

@media (max-width: 600px) {
    .qr-payment-inner {
        flex-direction: column;
        align-items: center;
    }

    .qr-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .qr-detail-value {
        text-align: left;
    }
}
