/* ==========================================================================
   WRITGO AFFILIATE SHORTCODES - CONVERSION TOOLKIT CSS
   ========================================================================== */

/* ==========================================================================
   PRODUCT BOX
   ========================================================================== */
.waff-product-box {
    position: relative;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    margin: 2rem 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.waff-product-box:hover {
    border-color: var(--wa-primary);
    box-shadow: 0 10px 40px rgba(26, 54, 93, 0.15);
}

.waff-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
}

.waff-badge-top {
    position: absolute;
    top: -1px;
    left: 24px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border-radius: 0 0 8px 8px;
    z-index: 10;
}

.waff-product-inner {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 24px;
    padding: 24px;
    align-items: center;
}

@media (max-width: 768px) {
    .waff-product-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.waff-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.waff-product-image img {
    max-width: 160px;
    max-height: 160px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.waff-product-box:hover .waff-product-image img {
    transform: scale(1.05);
}

.waff-product-brand {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.waff-product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
}

.waff-product-title a {
    color: var(--wa-primary);
    text-decoration: none;
}

.waff-product-title a:hover {
    color: var(--wa-accent);
}

.waff-product-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.waff-product-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: #475569;
    margin-bottom: 6px;
}

.waff-check {
    color: #10b981;
    font-weight: 700;
}

.waff-product-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-left: 24px;
    border-left: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .waff-product-action {
        padding-left: 0;
        padding-top: 20px;
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
}

/* Score Circle */
.waff-score {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--wa-primary), #2d4a6f);
    color: #fff;
}

.waff-score-excellent { background: linear-gradient(135deg, #10b981, #059669); }
.waff-score-good { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.waff-score-average { background: linear-gradient(135deg, #f59e0b, #d97706); }
.waff-score-poor { background: linear-gradient(135deg, #ef4444, #dc2626); }

.waff-score-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.waff-score-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Price Block */
.waff-price-block {
    text-align: center;
}

.waff-old-price {
    display: block;
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.waff-price {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--wa-primary);
}

/* ==========================================================================
   CTA BUTTONS
   ========================================================================== */
.waff-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    white-space: nowrap;
}

.waff-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
    color: #fff !important;
}

.waff-cta-blue {
    background: linear-gradient(135deg, var(--wa-primary), #2d4a6f);
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.4);
}

.waff-cta-blue:hover {
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.5);
}

.waff-cta-green {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.waff-cta-green:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.waff-cta-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.waff-cta-gold:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.waff-cta-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

.waff-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 1.5rem 0;
}

.waff-cta-price {
    font-size: 0.875rem;
    color: #64748b;
}

/* ==========================================================================
   BEST PICK BOX
   ========================================================================== */
.waff-best-pick {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 3px solid #f59e0b;
    border-radius: 16px;
    margin: 2rem 0;
    overflow: hidden;
}

.waff-best-pick-header {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.waff-trophy {
    font-size: 1.5rem;
}

.waff-best-pick-label {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.waff-best-pick-inner {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    padding: 24px;
    align-items: center;
}

@media (max-width: 640px) {
    .waff-best-pick-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.waff-best-pick-image img {
    max-width: 140px;
    margin: 0 auto;
}

.waff-best-pick-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wa-primary);
    margin: 0 0 8px;
}

.waff-best-pick-reason {
    color: #78716c;
    margin: 0 0 16px;
}

.waff-best-pick-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.waff-best-pick-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.waff-mini-score {
    background: var(--wa-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
}

.waff-best-pick-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--wa-primary);
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */
.waff-comparison-table {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    margin: 2rem 0;
    overflow: hidden;
}

.waff-comparison-header {
    background: var(--wa-primary);
    color: #fff;
    padding: 16px 24px;
}

.waff-comparison-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.waff-comparison-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
}

.waff-compare-item {
    padding: 24px;
    text-align: center;
    border-right: 1px solid #e2e8f0;
    position: relative;
}

.waff-compare-item:last-child {
    border-right: none;
}

.waff-compare-winner {
    background: linear-gradient(180deg, #fef3c7 0%, #fff 50%);
}

.waff-winner-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
}

.waff-compare-image img {
    max-width: 100px;
    max-height: 100px;
    margin: 0 auto 16px;
}

.waff-compare-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--wa-primary);
}

.waff-compare-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--wa-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.waff-compare-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wa-primary);
    margin-bottom: 16px;
}

.waff-compare-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--wa-accent);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.waff-compare-button:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

/* ==========================================================================
   VERDICT BOX
   ========================================================================== */
.waff-verdict {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
    border-radius: 16px;
    margin: 2rem 0;
    overflow: hidden;
}

.waff-verdict-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 16px 24px;
}

.waff-verdict-title {
    margin: 0;
    font-size: 1.125rem;
}

.waff-verdict-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    padding: 24px;
    align-items: center;
}

@media (max-width: 640px) {
    .waff-verdict-body {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.waff-verdict-score-wrap {
    text-align: center;
}

.waff-verdict-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.waff-verdict-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #059669;
    line-height: 1;
}

.waff-verdict-max {
    font-size: 1.25rem;
    font-weight: 600;
    color: #10b981;
}

.waff-verdict-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #059669;
    margin-top: 4px;
}

.waff-verdict-content {
    color: #166534;
    line-height: 1.7;
}

.waff-verdict-content p {
    margin: 0;
}

/* ==========================================================================
   PROS/CONS
   ========================================================================== */
.waff-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 2rem 0;
}

@media (max-width: 640px) {
    .waff-proscons {
        grid-template-columns: 1fr;
    }
}

.waff-pros {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #10b981;
    border-radius: 12px;
    overflow: hidden;
}

.waff-cons {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border: 2px solid #ef4444;
    border-radius: 12px;
    overflow: hidden;
}

.waff-proscons-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
}

.waff-pros-header {
    background: #10b981;
    color: #fff;
}

.waff-cons-header {
    background: #ef4444;
    color: #fff;
}

.waff-proscons-icon {
    font-size: 1.25rem;
}

.waff-proscons-header h4 {
    margin: 0;
    font-size: 1rem;
}

.waff-proscons ul {
    list-style: none;
    margin: 0;
    padding: 16px 20px;
}

.waff-proscons li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9375rem;
}

.waff-proscons li:last-child {
    margin-bottom: 0;
}

.waff-pro-check {
    color: #10b981;
    font-weight: 700;
    flex-shrink: 0;
}

.waff-con-x {
    color: #ef4444;
    font-weight: 700;
    flex-shrink: 0;
}

/* ==========================================================================
   ALERT BOXES
   ========================================================================== */
.waff-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.waff-alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.waff-alert-content {
    flex: 1;
}

.waff-alert-title {
    display: block;
    margin-bottom: 4px;
}

.waff-alert-text {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.waff-alert-info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #3b82f6;
    color: #1e40af;
}

.waff-alert-deal {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    color: #92400e;
}

.waff-alert-warning {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #ef4444;
    color: #991b1b;
}

.waff-alert-tip {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #10b981;
    color: #166534;
}

.waff-alert-check {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #10b981;
    color: #065f46;
}

/* ==========================================================================
   STAR RATING
   ========================================================================== */
.waff-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.waff-star {
    font-size: 1.25rem;
    color: #fbbf24;
}

.waff-star-empty {
    color: #d1d5db;
}

.waff-star-half {
    background: linear-gradient(90deg, #fbbf24 50%, #d1d5db 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.waff-stars-number {
    margin-left: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

/* ==========================================================================
   PRICE TAG
   ========================================================================== */
.waff-price-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.waff-discount-badge {
    background: #ef4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.waff-price-old {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 1rem;
}

.waff-price-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--wa-primary);
}

.waff-price-label {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================================
   SPECIFICATIONS TABLE
   ========================================================================== */
.waff-specs {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.waff-specs-title {
    background: var(--wa-bg-light);
    margin: 0;
    padding: 14px 20px;
    font-size: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.waff-specs-table tr {
    border-bottom: 1px solid #f1f5f9;
}

.waff-specs-table tr:last-child {
    border-bottom: none;
}

.waff-specs-table th,
.waff-specs-table td {
    padding: 12px 20px;
    text-align: left;
    font-size: 0.9375rem;
}

.waff-specs-table th {
    width: 40%;
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

.waff-specs-table td {
    color: var(--wa-primary);
    font-weight: 500;
}

/* ==========================================================================
   AFFILIATE DISCLOSURE
   ========================================================================== */
.waff-disclosure {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.waff-disclosure-icon {
    flex-shrink: 0;
}

/* ==========================================================================
   STICKY CTA BAR (appears on scroll)
   ========================================================================== */
.waff-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid var(--wa-accent);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.waff-sticky-cta.visible {
    transform: translateY(0);
}

.waff-sticky-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.waff-sticky-title {
    font-weight: 700;
    color: var(--wa-primary);
}

.waff-sticky-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--wa-accent);
}

@media (max-width: 640px) {
    .waff-sticky-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .waff-sticky-info {
        justify-content: center;
    }
}
