/* 
 * Premium Enhanced EDD Template 
 * Modern Design System with Animations
 */

:root {
    /* Color Palette - User's Brand */
    --brand-primary: #044F4D;
    --brand-secondary: #066866;
    --brand-accent: #04B8B0;
    --brand-dark: #022726;
    --brand-light: #f0fafa;

    /* Semantic Colors */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-surface: #ffffff;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(4, 79, 77, 0.15);
    --shadow-premium: 0 25px 50px -12px rgba(4, 79, 77, 0.2);
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px -10px rgba(4, 79, 77, 0.3);
    --shadow-inner: inset 0 2px 4px 0 rgba(255, 255, 255, 0.1);

    /* Spacing & Radius */
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;

    /* Animation */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Fix EDD Button Duplication */
.edd_purchase_submit_wrapper input.edd-no-js {
    display: none !important;
}

.edd_go_to_checkout {
    display: none !important;
}

/* Base resets */
.eddm-wrap {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: hidden;
    background-color: var(--brand-light);
    position: relative;
}

/* Force full-width on single download pages */
.single-download .site-content,
.single-download .ast-container,
.single-download #primary,
.single-download .entry-content {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ========================================
   SCROLL ANIMATIONS
======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   HERO SECTION
======================================== */
.eddm-hero-outer {
    position: relative;
    background: linear-gradient(135deg, #022726 0%, #044F4D 50%, #022726 100%);
    padding: 120px 0 160px;
    color: #fff;
    overflow: hidden;
}

.eddm-hero-outer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #f8fafa);
    pointer-events: none;
}

/* Animated Background Glows */
.eddm-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    animation: drift 20s infinite alternate ease-in-out;
}

.eddm-glow--1 {
    background: var(--brand-primary);
    top: -100px;
    left: -100px;
}

.eddm-glow--2 {
    background: var(--brand-accent);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.eddm-glow--3 {
    background: var(--brand-secondary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 100px) scale(1.2);
    }
}

.eddm-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Full-width container for hero section */
.eddm-hero-container {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

/* Full-width container for requirements */
.eddm-requirements-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 0 40px;
}

/* Content-width container for tabs and related products */
.eddm-content-width {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {

    .eddm-hero-container,
    .eddm-requirements-container,
    .eddm-content-width {
        width: 95%;
        padding: 0 15px;
    }
}

/* Typography */
.eddm-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #a7f3d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleSlide 0.8s ease-out;
}

@keyframes titleSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eddm-subtitle {
    font-size: 20px;
    color: #94a3b8;
    max-width: 600px;
    margin-bottom: 40px;
}

/* Breadcrumbs */
.eddm-breadcrumbs {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #64748b;
}

.eddm-breadcrumbs a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
}

.eddm-breadcrumbs a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-accent);
    transition: width 0.3s ease;
}

.eddm-breadcrumbs a:hover {
    color: #fff;
}

.eddm-breadcrumbs a:hover::after {
    width: 100%;
}

.eddm-sep {
    color: #334155;
}

/* Badges */
.eddm-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.eddm-badge {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.eddm-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Description */
.eddm-hero-description {
    margin-bottom: 40px;
    max-width: 700px;
}

.eddm-hero-description p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 16px 0;
}

.eddm-hero-description p:last-child {
    margin-bottom: 0;
}

.eddm-hero-description strong {
    color: #fff;
    font-weight: 600;
}

.eddm-hero-description a {
    color: var(--brand-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-base);
}

.eddm-hero-description a:hover {
    border-bottom-color: var(--brand-accent);
}

/* Media/Cover */
.eddm-cover-wrap {
    border-radius: var(--radius-xl);
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-base);
}

.eddm-cover-wrap:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(4, 79, 77, 0.3);
}

.eddm-cover {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
}

/* Glass Sidebar Card */
.eddm-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-premium);
    color: var(--brand-dark);
    transition: var(--transition-base);
}

.eddm-glass-card:hover {
    box-shadow: var(--shadow-hover);
}

.eddm-sticky {
    position: sticky;
    top: 100px;
}

.eddm-price-header {
    margin-bottom: 32px;
}

.eddm-price-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-primary);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.eddm-price__value {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Premium Button */
.eddm-premium-btn.edd-submit {
    display: block !important;
    width: 100% !important;
    padding: 20px !important;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%) !important;
    color: #fff !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    cursor: pointer !important;
    transition: var(--transition-bounce) !important;
    box-shadow: 0 10px 20px -5px rgba(4, 79, 77, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
    text-align: center !important;
}

.eddm-premium-btn.edd-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.eddm-premium-btn.edd-submit:hover::before {
    left: 100%;
}

.eddm-premium-btn.edd-submit:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 20px 30px -10px rgba(4, 79, 77, 0.5) !important;
}

.eddm-premium-btn.edd-submit:active {
    transform: translateY(-2px) scale(0.98) !important;
}

/* Buy Wrapper - Fix button alignment */
.eddm-buy-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.eddm-buy-wrapper form {
    width: 100%;
}

.eddm-buy-wrapper .edd_purchase_submit_wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Style the checkout/view cart button */
.eddm-buy-wrapper .edd_go_to_checkout,
.eddm-buy-wrapper .edd-add-to-cart-label+a,
.eddm-buy-wrapper a.edd-add-to-cart {
    display: block !important;
    width: 100% !important;
    padding: 16px 20px !important;
    background: transparent !important;
    color: var(--brand-primary) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border: 2px solid var(--brand-primary) !important;
    border-radius: var(--radius-md) !important;
    cursor: pointer !important;
    transition: var(--transition-base) !important;
    text-align: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.eddm-buy-wrapper .edd_go_to_checkout:hover,
.eddm-buy-wrapper a.edd-add-to-cart:hover {
    background: var(--brand-primary) !important;
    color: #fff !important;
}

/* Benefits List */
.eddm-benefit-list {
    margin: 32px 0;
    display: grid;
    gap: 16px;
}

.eddm-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
    transition: var(--transition-base);
    padding: 8px;
    border-radius: 8px;
}

.eddm-benefit-item:hover {
    background: rgba(4, 79, 77, 0.05);
    transform: translateX(8px);
}

.eddm-benefit-item svg {
    color: var(--brand-accent);
    flex-shrink: 0;
}

.eddm-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hero Layout */
.eddm-hero {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
}

@media (max-width: 960px) {
    .eddm-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ========================================
   REQUIREMENTS SECTION
======================================== */
.eddm-requirements {
    background: linear-gradient(180deg, #f8fafa 0%, #ffffff 50%, #f8fafa 100%);
    padding: 120px 0;
    margin-top: -60px;
    position: relative;
    overflow: hidden;
}

.eddm-requirements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(4, 79, 77, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(4, 184, 176, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.eddm-requirements-container {
    position: relative;
    z-index: 1;
}

.eddm-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.eddm-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 16px;
}

.eddm-section-title span {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eddm-req-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Force 5 columns on desktop */
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

@media (max-width: 1024px) {
    .eddm-req-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

.eddm-req-card {
    background: #ffffff;
    border: 1px solid rgba(4, 79, 77, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.eddm-req-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.eddm-req-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(4, 79, 77, 0.15);
    border-color: rgba(4, 184, 176, 0.2);
}

.eddm-req-card:hover::before {
    transform: scaleX(1);
}

.eddm-req-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(4, 79, 77, 0.08), rgba(4, 184, 176, 0.08));
    border-radius: 50%;
    transition: var(--transition-base);
    color: var(--brand-primary);
    overflow: hidden;
    flex-shrink: 0;
}

.eddm-req-img {
    width: 55%;
    height: auto;
    object-fit: contain;
    display: block;
}

.eddm-req-card:hover .eddm-req-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(4, 79, 77, 0.12), rgba(4, 184, 176, 0.12));
}

.eddm-req-icon svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.eddm-req-content {
    margin-top: auto;
    padding-top: 8px;
}

.eddm-req-value {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 6px;
    line-height: 1.3;
    word-break: break-word;
}

.eddm-req-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ========================================
   TABS & CONTENT
======================================== */
.eddm-tabs {
    margin-top: 80px;
    padding-bottom: 100px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.eddm-tabbar {
    display: flex;
    gap: 8px;
    background: #fff;
    padding: 8px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    width: fit-content;
    margin: 0 auto 48px;
    /* Centered */
    overflow-x: auto;
    border: 1px solid var(--glass-border);
}

.eddm-tab {
    appearance: none;
    border: none;
    background: transparent;
    padding: 12px 24px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    position: relative;
    background: transparent;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.eddm-tab:hover {
    color: var(--brand-primary);
    background: rgba(4, 79, 77, 0.05);
}

.eddm-tab.is-active {
    background: #fff;
    color: var(--brand-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.eddm-tab::after {
    display: none;
}

/* Premium Purchase Button in Tabs */
.eddm-panel .edd-submit.button.blue {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: var(--transition-bounce);
    width: 100%;
    margin-top: 20px;
    display: block;
    text-align: center;
    cursor: pointer;
}

.eddm-panel .edd-submit.button.blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.eddm-panel {
    display: none;
    animation: fadeIn 0.5s ease-in;
    padding: 32px;
}

.eddm-panel.is-active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eddm-prose {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
}

.eddm-prose h2,
.eddm-prose h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--brand-dark);
    margin-top: 48px;
    margin-bottom: 24px;
}

.eddm-prose h2 {
    font-size: 32px;
}

.eddm-prose h3 {
    font-size: 24px;
}

.eddm-prose ul,
.eddm-prose ol {
    margin: 24px 0;
    padding-left: 32px;
}

.eddm-prose li {
    margin-bottom: 12px;
}

.eddm-prose code {
    background: var(--brand-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--brand-primary);
}

/* Documentation Styles */
.eddm-documentation {
    max-width: 900px;
}

.eddm-doc-placeholder {
    text-align: center;
    padding: 80px 40px;
    background: var(--brand-light);
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(4, 79, 77, 0.2);
}

.eddm-doc-placeholder svg {
    margin-bottom: 24px;
    color: var(--brand-primary);
    opacity: 0.5;
}

.eddm-doc-placeholder p {
    color: var(--text-muted);
    font-size: 18px;
}

/* ========================================
   RELATED PRODUCTS
======================================== */
.eddm-related {
    background: #fff;
    padding: 100px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.eddm-related__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.eddm-related__head h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-dark);
}

.eddm-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.eddm-link:hover {
    color: var(--brand-accent);
    transform: translateX(4px);
}

.eddm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.eddm-item {
    background: var(--brand-light);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    text-decoration: none;
    display: block;
}

.eddm-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: var(--brand-accent);
}

.eddm-item__thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--brand-dark);
    position: relative;
}

.eddm-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.eddm-item:hover .eddm-item__thumb img {
    transform: scale(1.1);
}

.eddm-item__thumb--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    opacity: 0.1;
}

.eddm-item__body {
    padding: 24px;
}

.eddm-item__title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

.eddm-item__meta {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-primary);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .eddm-hero-outer {
        padding: 60px 0 80px;
    }

    .eddm-requirements {
        padding: 60px 0;
    }

    .eddm-req-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }

    .eddm-req-card {
        padding: 24px 16px;
    }

    .eddm-tabbar {
        width: 100%;
        justify-content: flex-start;
    }

    .eddm-related__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ========================================
   EDD CHECKOUT PAGE STYLES
======================================== */

/* Checkout Page Container */
.page-template-default.edd-page #edd_checkout_wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
}

/* Cart Table Header */
#edd_checkout_cart {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(4, 79, 77, 0.1);
    margin-bottom: 32px;
}

#edd_checkout_cart thead {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
}

#edd_checkout_cart thead th {
    padding: 16px 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
}

#edd_checkout_cart tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#edd_checkout_cart tbody tr:last-child {
    border-bottom: none;
}

#edd_checkout_cart tbody td {
    padding: 20px;
    vertical-align: middle;
}

#edd_checkout_cart .edd_cart_item_name {
    font-weight: 600;
    color: var(--brand-dark);
    font-size: 16px;
}

#edd_checkout_cart .edd_cart_item_price,
#edd_checkout_cart .edd_cart_amount {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 18px;
}

/* Cart Footer/Total */
#edd_checkout_cart tfoot {
    background: var(--brand-light);
}

#edd_checkout_cart tfoot th,
#edd_checkout_cart tfoot td {
    padding: 20px;
    font-size: 18px;
}

#edd_checkout_cart .edd_cart_total {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--brand-primary);
}

/* Remove Item Link */
#edd_checkout_cart .edd_cart_remove_item_btn {
    color: #dc2626;
    font-size: 12px;
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition-base);
}

#edd_checkout_cart .edd_cart_remove_item_btn:hover {
    opacity: 1;
}

/* Checkout Form Sections */
#edd_checkout_form_wrap {
    display: grid;
    gap: 24px;
}

#edd_checkout_form_wrap fieldset,
#edd_checkout_form_wrap #edd_purchase_submit {
    background: #fff;
    border: 1px solid rgba(4, 79, 77, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

#edd_checkout_form_wrap legend,
#edd_checkout_form_wrap .edd-payment-mode-label {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--brand-light);
    display: block;
    width: 100%;
}

/* Form Fields */
#edd_checkout_form_wrap .edd-input,
#edd_checkout_form_wrap input[type="text"],
#edd_checkout_form_wrap input[type="email"],
#edd_checkout_form_wrap input[type="tel"],
#edd_checkout_form_wrap input[type="password"],
#edd_checkout_form_wrap select,
#edd_checkout_form_wrap textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-base);
    background: #fff;
}

#edd_checkout_form_wrap .edd-input:focus,
#edd_checkout_form_wrap input:focus,
#edd_checkout_form_wrap select:focus,
#edd_checkout_form_wrap textarea:focus {
    border-color: var(--brand-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(4, 79, 77, 0.1);
}

#edd_checkout_form_wrap label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

#edd_checkout_form_wrap .edd-required-indicator {
    color: #dc2626;
}

/* Form Row Layout */
#edd_checkout_form_wrap p {
    margin-bottom: 20px;
}

#edd_checkout_user_info {
    display: grid;
    gap: 16px;
}

/* Payment Methods */
#edd-payment-mode-wrap {
    display: grid;
    gap: 12px;
}

#edd-payment-mode-wrap .edd-payment-mode-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--brand-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

#edd-payment-mode-wrap input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--brand-primary);
}

#edd-payment-mode-wrap .edd-payment-mode-label:hover {
    border-color: var(--brand-primary);
}

/* Purchase Button */
#edd_purchase_submit #edd-purchase-button,
#edd_checkout_form_wrap .edd-submit {
    display: block;
    width: 100%;
    padding: 20px 32px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: 0 10px 30px -5px rgba(4, 79, 77, 0.4);
}

#edd_purchase_submit #edd-purchase-button:hover,
#edd_checkout_form_wrap .edd-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px -5px rgba(4, 79, 77, 0.5);
}

/* Terms Agreement */
#edd_terms_agreement {
    margin-bottom: 24px;
}

#edd_terms_agreement label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

#edd_terms_agreement input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--brand-primary);
    margin-top: 2px;
}

/* Discount Code Field */
#edd_discount_code {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#edd_discount_code input {
    flex: 1;
}

#edd_discount_code button,
#edd-apply-discount {
    padding: 14px 24px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

#edd_discount_code button:hover,
#edd-apply-discount:hover {
    background: var(--brand-dark);
}

/* Error/Notice Messages */
.edd_errors,
.edd-alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 500;
}

.edd_errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.edd-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* Empty Cart */
.edd-cart-empty {
    text-align: center;
    padding: 60px 40px;
    background: var(--brand-light);
    border-radius: var(--radius-lg);
}

.edd-cart-empty p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Checkout Page Title */
.page-template-default.edd-page .entry-title,
.page-template-default.edd-page h1.entry-title {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--brand-dark);
    text-align: center;
    margin-bottom: 40px;
}

/* Secure Checkout Badge */
#edd_checkout_form_wrap::after {
    content: "🔒 Secure 256-bit Encrypted Checkout";
    display: block;
    text-align: center;
    padding: 16px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 24px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-template-default.edd-page #edd_checkout_wrap {
        padding: 20px 16px;
    }

    #edd_checkout_cart thead th,
    #edd_checkout_cart tbody td {
        padding: 12px;
        font-size: 14px;
    }

    #edd_checkout_form_wrap fieldset {
        padding: 20px;
    }

    #edd_discount_code {
        flex-direction: column;
    }
}

/* ========================================
   EDD RECEIPT / PURCHASE CONFIRMATION
======================================== */

.edd-payment-receipt {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--glass-border);
    margin-bottom: 32px;
}

.edd-payment-receipt thead {
    background: var(--brand-light);
    color: var(--brand-primary);
}

.edd-payment-receipt th,
.edd-payment-receipt td {
    padding: 16px;
    border-bottom: 1px solid var(--brand-light);
}

.edd-payment-receipt th {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

#edd_purchase_receipt {
    display: grid;
    gap: 16px;
}

#edd_purchase_receipt strong {
    color: var(--brand-primary);
}

/* Receipt Buttons */
.edd-payment-receipt a.edd-submit {
    display: inline-block !important;
    width: auto !important;
    margin-top: 12px;
}

/* ========================================
   EDD ORDER HISTORY
======================================== */

.edd-table {
    width: 100%;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--glass-border);
    border-collapse: collapse;
}

.edd-table thead {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
}

.edd-table th {
    padding: 16px 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-align: left;
}

.edd-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--brand-light);
}

.edd-table tr:hover {
    background: var(--brand-light);
}

.edd_purchase_history_actions a {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
}

.edd_purchase_history_actions a:hover {
    color: var(--brand-accent);
}

/* ========================================
   EDD TRANSACTION FAILED
======================================== */

.edd-alert.edd-alert-error {
    background: #fef2f2;
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    border: 1px solid #fecaca;
    box-shadow: var(--shadow-card);
}

.edd-alert.edd-alert-error::before {
    content: '⚠️';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
}

.edd-alert.edd-alert-error .edd_errors {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    font-weight: 600;
    color: #dc2626;
}

.edd-alert.edd-alert-error p {
    color: var(--text-muted);
}

/* ========================================
   EDD PURCHASE CONFIRMATION
======================================== */

.edd_success_page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.edd_success_page .edd-alert-success,
.edd-success-payment-status {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #16a34a !important;
    padding: 32px !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 32px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow-card) !important;
}

.edd_success_page .edd-success-message,
.edd_success_page p:first-of-type {
    font-family: 'Outfit', sans-serif !important;
    font-size: 28px !important;
    color: var(--brand-primary) !important;
    margin-bottom: 24px !important;
    text-align: center !important;
    font-weight: 700 !important;
}

.edd_success_page #edd_purchase_receipt {
    background: #fff !important;
    border-radius: var(--radius-lg) !important;
    padding: 32px !important;
    box-shadow: var(--shadow-card) !important;
    border: 1px solid var(--glass-border) !important;
    margin-top: 40px !important;
}

.edd_success_page #edd_purchase_receipt strong {
    color: var(--brand-primary) !important;
}

.edd_success_page #edd_purchase_receipt td,
.edd_success_page #edd_purchase_receipt th {
    padding: 16px !important;
    border-bottom: 1px solid var(--brand-light) !important;
}

.edd_success_page .edd_purchase_receipt_product {
    font-weight: 700 !important;
    font-size: 18px !important;
    color: var(--brand-dark) !important;
}

/* ========================================
   RE-DESIGNED EDD CONFIRMATION PAGE
======================================== */

.eddm-receipt-wrap {
    max-width: 1000px;
    margin: 40px auto;
    font-family: 'Inter', sans-serif;
}

/* Success Hero */
.eddm-receipt-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 20px;
}

.eddm-receipt-icon {
    width: 80px;
    height: 80px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 0 10px var(--brand-light);
    animation: pulse-success 2s infinite;
}

.eddm-receipt-icon svg {
    width: 40px;
    height: 40px;
}

@keyframes pulse-success {
    0% {
        box-shadow: 0 0 0 0 rgba(4, 79, 77, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(4, 79, 77, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(4, 79, 77, 0);
    }
}

.eddm-receipt-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 12px;
}

.eddm-receipt-hero p {
    font-size: 18px;
    color: var(--text-muted);
}

/* Grid Layout */
.eddm-receipt-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .eddm-receipt-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar / Order Details */
.eddm-receipt-sidebar .eddm-glass-card {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.eddm-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--brand-dark);
    border-bottom: 1px solid var(--brand-light);
    padding-bottom: 16px;
}

.eddm-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 14px;
}

.eddm-detail-label {
    color: var(--text-muted);
    font-weight: 500;
}

.eddm-detail-value {
    color: var(--brand-dark);
    font-weight: 600;
}

.eddm-detail-value.status-complete {
    background: #f0fdf4;
    color: #16a34a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

.eddm-order-total {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px dashed var(--brand-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-weight: 700;
    color: var(--brand-dark);
}

.total-value {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-primary);
}

.eddm-receipt-actions {
    margin-top: 24px;
}

/* Main Content / Products */
.eddm-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--brand-dark);
}

.eddm-product-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-base);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.eddm-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--brand-primary);
}

.eddm-product-name {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-dark);
}

.eddm-product-sku {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.eddm-download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--brand-primary);
    color: #fff !important;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none !important;
    transition: var(--transition-base);
}

.eddm-download-btn:hover {
    background: var(--brand-dark);
    transform: scale(1.05);
}

.eddm-btn--outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary) !important;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none !important;
    transition: var(--transition-base);
}

.eddm-btn--outline:hover {
    background: var(--brand-primary);
    color: #fff !important;
}

/* Responsive Table */
@media (max-width: 768px) {
    .edd-table {
        display: block;
        overflow-x: auto;
    }

    .eddm-product-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .eddm-product-download {
        width: 100%;
    }

    .eddm-download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   PRODUCT ICON IN PURCHASE CARD
======================================== */
.eddm-product-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px 20px;
    margin-bottom: 20px;
    position: relative;
}

.eddm-product-icon-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
}

.eddm-product-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(4, 79, 77, 0.1), rgba(4, 184, 176, 0.1));
    border-radius: 20px;
    padding: 15px;
    position: relative;
    animation: iconFloat 3s ease-in-out infinite;
}

.eddm-product-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    border-radius: 20px;
    opacity: 0.3;
    filter: blur(8px);
    z-index: -1;
    animation: iconGlow 2s ease-in-out infinite alternate;
}

.eddm-product-icon svg,
.eddm-product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.eddm-product-icon svg {
    fill: var(--brand-primary);
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes iconGlow {
    0% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.4;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .eddm-product-icon {
        width: 70px;
        height: 70px;
    }

    .eddm-product-icon-wrapper {
        padding: 25px 15px 15px;
    }
}

/* ========================================
   PRICE HEADER CENTERING
======================================== */
.eddm-price-header {
    text-align: center;
}

.eddm-price-label {
    text-align: center;
}

.eddm-price__value {
    text-align: center;
}