/**
 * CNC Product Link - Modern Thank You Page Templates CSS
 * Author: NOOR (cncdesignhub.com)
 */

/* ==========================================
   GLOBAL RESET & VARIABLES FOR CNC TEMPLATES
   ========================================== */
.cnc-ty-container {
    max-width: 950px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    line-height: 1.5;
    box-sizing: border-box;
}

.cnc-ty-container * {
    box-sizing: border-box;
}

/* ==========================================
   ORDER BREAKDOWN & ADDRESSES TABLES
   ========================================== */
.cnc-ty-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 30px 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cnc-ty-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.cnc-ty-details-table th,
.cnc-ty-details-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
}

.cnc-ty-details-table thead th {
    background: #f8fafc;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    font-size: 11.5px;
    letter-spacing: 0.5px;
}

.cnc-ty-details-table tbody td {
    color: #1e293b;
}

.cnc-ty-details-table tfoot th {
    font-weight: 600;
    color: #64748b;
    text-align: left;
    background: #f8fafc;
}

.cnc-ty-details-table tfoot td {
    text-align: right;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
}

.cnc-ty-details-table tfoot tr:last-child th,
.cnc-ty-details-table tfoot tr:last-child td {
    font-size: 15px;
    font-weight: 800;
    color: #2563eb;
    border-top: 2px solid #cbd5e1;
    border-bottom: none;
}

/* Addresses Grid */
.cnc-ty-addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.cnc-ty-address-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.cnc-ty-address-card h4 {
    margin: 0 0 12px 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cnc-ty-address-card address {
    font-style: normal;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}

/* ==========================================
   TEMPLATE 1: MODERN CLEAN SAAS
   ========================================== */
.cnc-ty-modern-clean {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    padding: 35px 30px;
}

.cnc-ty-modern-clean .cnc-ty-header {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
}

.cnc-ty-modern-clean .cnc-ty-success-icon {
    width: 60px;
    height: 60px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.cnc-ty-modern-clean .cnc-ty-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.cnc-ty-modern-clean .cnc-ty-subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.cnc-ty-meta-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 25px 0;
}

.cnc-ty-meta-item {
    text-align: center;
}

.cnc-ty-meta-label {
    font-size: 11.5px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.cnc-ty-meta-val {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
}

.cnc-ty-downloads-box {
    margin: 30px 0;
    background: linear-gradient(145deg, #f0fdf4 0%, #ffffff 100%);
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    padding: 24px;
}

.cnc-ty-downloads-heading {
    font-size: 16px;
    font-weight: 700;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px 0;
}

.cnc-ty-download-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    gap: 15px;
}

.cnc-ty-download-row:last-child {
    margin-bottom: 0;
}

.cnc-ty-item-info {
    flex: 1 1 280px;
}

.cnc-ty-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.cnc-ty-item-note {
    font-size: 13px;
    color: #64748b;
}

.cnc-ty-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.25);
    white-space: nowrap;
}

.cnc-ty-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.35);
    color: #ffffff !important;
}

/* ==========================================
   TEMPLATE 2: CNC VIBRANT DARK & GLASSMORPHISM
   ========================================== */
.cnc-ty-dark-glass {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.cnc-ty-dark-glass::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cnc-ty-dark-glass .cnc-ty-header {
    text-align: center;
    margin-bottom: 30px;
}

.cnc-ty-dark-glass .cnc-ty-success-icon {
    width: 65px;
    height: 65px;
    background: rgba(56, 189, 248, 0.15);
    border: 2px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.cnc-ty-dark-glass .cnc-ty-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.cnc-ty-dark-glass .cnc-ty-subtitle {
    color: #94a3b8;
    font-size: 14px;
}

.cnc-ty-dark-glass .cnc-ty-meta-bar {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.cnc-ty-dark-glass .cnc-ty-meta-label {
    color: #94a3b8;
}

.cnc-ty-dark-glass .cnc-ty-meta-val {
    color: #ffffff;
}

.cnc-ty-dark-glass .cnc-ty-downloads-box {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.3);
    backdrop-filter: blur(12px);
}

.cnc-ty-dark-glass .cnc-ty-downloads-heading {
    color: #38bdf8;
}

.cnc-ty-dark-glass .cnc-ty-download-row {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cnc-ty-dark-glass .cnc-ty-item-title {
    color: #ffffff;
}

.cnc-ty-dark-glass .cnc-ty-item-note {
    color: #94a3b8;
}

.cnc-ty-dark-glass .cnc-ty-section-title {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.cnc-ty-dark-glass .cnc-ty-details-table {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.cnc-ty-dark-glass .cnc-ty-details-table thead th {
    background: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.cnc-ty-dark-glass .cnc-ty-details-table tbody td {
    color: #e2e8f0;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.cnc-ty-dark-glass .cnc-ty-details-table tfoot th,
.cnc-ty-dark-glass .cnc-ty-details-table tfoot td {
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.cnc-ty-dark-glass .cnc-ty-address-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.cnc-ty-dark-glass .cnc-ty-address-card h4 {
    color: #38bdf8;
}

.cnc-ty-dark-glass .cnc-ty-address-card address {
    color: #94a3b8;
}

/* ==========================================
   TEMPLATE 3: DIGITAL DOWNLOAD HUB - SPLIT
   ========================================== */
.cnc-ty-split-hub {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 25px;
}

@media (max-width: 850px) {
    .cnc-ty-split-hub {
        grid-template-columns: 1fr;
    }
}

.cnc-ty-split-left,
.cnc-ty-split-right {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cnc-ty-split-hub .cnc-ty-badge-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cnc-ty-split-hub .cnc-ty-main-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.cnc-ty-split-hub .cnc-ty-main-desc {
    color: #64748b;
    font-size: 13.5px;
    margin: 0 0 20px 0;
}

.cnc-ty-file-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 4px;
}

/* ==========================================
   TEMPLATE 4: CNC STUDIO HERO BANNER
   ========================================== */
.cnc-ty-hero-studio {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.cnc-ty-hero-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0d9488 100%);
    color: #ffffff;
    padding: 40px 30px;
    text-align: center;
}

.cnc-ty-hero-banner h1 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.cnc-ty-hero-banner p {
    color: #e0f2fe;
    font-size: 15px;
    margin: 0;
}

.cnc-ty-hero-body {
    padding: 30px;
}

.cnc-ty-action-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.cnc-ty-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f1f5f9;
    color: #334155 !important;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cnc-ty-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}
