/* Affilify - Amazon Product Review Block Styles */

:root {
    --wise-product-accent: #7e3af2;
}

.wise-amazon-review-wrapper {
    margin: 40px 0;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: var(--wise-product-width, 1200px);
    margin-left: auto;
    margin-right: auto;
}

/* Force wide width if alignwide/alignfull is used or if theme restricts it */
.wise-amazon-review-wrapper.alignwide,
.wise-amazon-review-wrapper.alignfull {
    max-width: 100% !important;
    width: 100% !important;
}

/* If the block is intended to be 1200px but parent is narrow, use this trick */
@media (min-width: 1240px) {
    .wise-amazon-review-wrapper:not(.alignwide):not(.alignfull) {
        width: 1200px !important;
        margin-left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: none !important;
    }
}

.wise-product-container {
    display: flex;
    gap: 0;
    align-items: flex-start;
    padding: 0;
}

.wise-product-left {
    flex: 0 0 32%;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wise-product-right {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
}

/* Base Styles */
.wise-product-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px 0;
}

.wise-product-specs {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.wise-product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.wise-product-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #333;
}

.wise-feature-icon {
    background: #00d084;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.wise-product-price {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-align: right;
    color: #000;
}

.wise-btn {
    padding: 16px 20px;
    background: var(--wise-product-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.2s ease;
    flex: 1;
    text-transform: none;
}

.wise-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Template 1: Premium Split (Default) - Matches User Screenshot */
.wise-amazon-review-wrapper.template-1 {
    background: #f4f4f4;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ddd;
}

.wise-amazon-review-wrapper.template-1 .wise-product-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.wise-amazon-review-wrapper.template-1 .wise-product-specs {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.6rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 40px;
}

.wise-amazon-review-wrapper.template-1 .wise-image-placeholder,
.wise-amazon-review-wrapper.template-1 .image-button {
    background: var(--wise-product-accent);
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 0;
    border: none;
    font-size: 1rem;
    margin-bottom: 25px;
}

.wise-amazon-review-wrapper.template-1 .wise-product-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.wise-amazon-review-wrapper.template-1 .wise-star-rating {
    font-size: 28px;
    margin-bottom: 10px;
    gap: 4px;
}

.wise-amazon-review-wrapper.template-1 .star-full,
.wise-amazon-review-wrapper.template-1 .star-half {
    color: #00f5d4;
}

.wise-amazon-review-wrapper.template-1 .star-empty {
    color: #ddd;
}

.wise-amazon-review-wrapper.template-1 .wise-review-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.wise-amazon-review-wrapper.template-1 .wise-product-features {
    margin-left: 20px;
}

.wise-amazon-review-wrapper.template-1 .wise-feature-icon {
    background: #4ade80;
}

.wise-amazon-review-wrapper.template-1 .wise-product-buttons {
    display: flex;
    gap: 20px;
}

/* Template 2: Card Full (Vertical) */
.wise-amazon-review-wrapper.template-2 .wise-product-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.wise-amazon-review-wrapper.template-2 {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.wise-amazon-review-wrapper.template-2 .wise-product-features {
    display: inline-block;
    text-align: left;
}

.wise-amazon-review-wrapper.template-2 .wise-product-bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Template 3: Modern List (Horizontal Compact) */
.wise-amazon-review-wrapper.template-3 .wise-product-container {
    gap: 20px;
    padding: 20px;
}

.wise-amazon-review-wrapper.template-3 .wise-product-left {
    flex: 0 0 150px;
}

.wise-amazon-review-wrapper.template-3 .wise-product-title {
    font-size: 1.5rem;
}

.wise-amazon-review-wrapper.template-3 .wise-product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 15px;
}

.wise-amazon-review-wrapper.template-3 .wise-product-features li {
    margin-bottom: 0;
}

/* Template 4: Dark Sleek */
.wise-amazon-review-wrapper.template-4 {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
}

.wise-amazon-review-wrapper.template-4 .wise-product-title {
    color: #fff;
}

.wise-amazon-review-wrapper.template-4 .wise-product-specs {
    color: #aaa;
}

.wise-amazon-review-wrapper.template-4 .wise-product-image {
    background: #222;
}

.wise-amazon-review-wrapper.template-4 .wise-review-count {
    color: #ccc;
}

.wise-image-placeholder {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.wise-image-placeholder:hover {
    background: #e8e8e8;
    border-color: var(--wise-product-accent);
}

/* Editor Tools */
.wise-amazon-review-editor-tools {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    display: flex;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
}

/* Rating Stars Polishing */
.wise-star-rating {
    display: flex;
    justify-content: center;
    gap: 4px;
    font-size: 20px;
}

.star-full { color: #ffb800; }
.star-half { color: #ffb800; }
.star-empty { color: #e0e0e0; }

/* Template 5: Classic Amazon - Matches http://gutenwise.local/test/ */
.wise-amazon-review-wrapper.template-5 {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.wise-amazon-review-wrapper.template-5 .wise-product-left {
    flex: 0 0 25%;
    background: transparent;
    border-right: 1px solid #f0f0f0;
    padding: 30px 20px;
}

.wise-amazon-review-wrapper.template-5 .wise-product-image {
    display: block; /* Restore visibility */
    margin-bottom: 20px;
}

.wise-amazon-review-wrapper.template-5 .wise-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.wise-amazon-review-wrapper.template-5 .wise-star-rating {
    font-size: 24px;
    color: #f17b0d;
    margin-bottom: 5px;
}

.wise-amazon-review-wrapper.template-5 .star-full,
.wise-amazon-review-wrapper.template-5 .star-half {
    color: #f1a600;
}

.wise-amazon-review-wrapper.template-5 .wise-review-count {
    color: #555;
    font-size: 0.9rem;
    font-weight: 400;
}

.wise-amazon-review-wrapper.template-5 .wise-product-right {
    padding: 30px;
}

.wise-amazon-review-wrapper.template-5 .wise-product-title {
    color: #004a99;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 15px;
}

.wise-amazon-review-wrapper.template-5 .wise-product-specs {
    display: none; /* Hide specs if they don't match list style */
}

.wise-amazon-review-wrapper.template-5 .wise-product-price::before {
    content: "Price: ";
    font-weight: 700;
}

.wise-amazon-review-wrapper.template-5 .wise-product-features {
    list-style: none; /* Removing disc to use checkmarks consistently */
    padding-left: 0;
    margin-bottom: 30px;
}

.wise-amazon-review-wrapper.template-5 .wise-product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #111;
    margin-bottom: 8px;
}

.wise-amazon-review-wrapper.template-5 .wise-feature-icon {
    display: inline-flex;
    background: #4ade80;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.wise-amazon-review-wrapper.template-5 .wise-product-price {
    color: #333;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: right;
}

.wise-amazon-review-wrapper.template-5 .wise-product-buttons {
    justify-content: flex-end;
}

.wise-amazon-review-wrapper.template-5 .wise-btn {
    background: #ffb700;
    border: 1px solid #a88734;
    color: #111;
    border-radius: 4px;
    padding: 8px 25px;
    font-size: 0.85rem;
    max-width: 200px;
}

.wise-amazon-review-wrapper.template-5 .wise-btn:hover {
    background: #f0c14b;
    border-color: #846a29;
}

.wise-amazon-review-wrapper.template-5 .btn-1 {
    display: none; /* Hide daraz button for classic amazon style */
}
