/* WooCommerce Save Product Button
   Observação: por padrão o botão acompanha o estilo do tema (modo "theme").
   Estilos visuais só são forçados no modo "custom" (.wc-save-product-btn--custom). */
.wc-save-product-btn {
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Modo theme - tenta acompanhar o estilo do botão de compra do tema */
.wc-save-product-btn--theme{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.2;
    vertical-align: middle;
}

/* Modo custom (Preenchido/Outline) - mantém aparência consistente sem depender do tema */
.wc-save-product-btn--custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.2;
    background-color: #f7f7f7;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.wc-save-product-btn--custom:hover {
    background-color: #e8e8e8;
    border-color: #bbb;
}

/* Container do anúncio (AdSense) abaixo do botão "Salvar Produto" */
.wc-save-product-adsense{
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Garante que o bloco do AdSense siga o mesmo comportamento responsivo */
.wc-save-product-adsense ins.adsbygoogle{
    display: block;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* Modal Styles */
.wc-save-product-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
}

.wc-save-product-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    position: relative;
    margin: auto;
}

.wc-save-product-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.wc-save-product-close:hover {
    color: #000;
}

.wc-save-product-modal-header h2 {
    margin: 0 0 15px 0;
    font-size: 22px;
    color: #333;
}

/* Product Preview */
.wc-save-product-preview {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    align-items: center;
}

.wc-save-product-image img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
}

.wc-save-product-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;

    /* Limitar título a 2 linhas com reticências (mobile/desktop) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3em;
    max-height: 2.6em;
    word-break: break-word;
}

.wc-save-product-info .price {
    margin: 0;
    font-size: 18px;
    color: #c00;
    font-weight: 600;
}

.wc-save-product-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.wc-save-product-form-group {
    margin-bottom: 15px;
}

.wc-save-product-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.wc-save-product-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.wc-save-product-submit {
    width: 100%;
    padding: 12px;
    background-color: #a46497;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.wc-save-product-submit:hover {
    background-color: #8b4d7a;
}

.wc-save-product-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
    text-align: center;
}

.wc-save-product-message.success {
    background-color: #d4edda;
    color: #155724;
}

.wc-save-product-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Consent text under submit button (small, low space) */
.wc-save-product-consent {
    margin: 8px 0 0 0;
    font-size: 11px;
    line-height: 1.25;
    opacity: 0.8;
    text-align: center;
}

.wc-save-product-consent a {
    text-decoration: underline;
}


/* ===== Compact Button Spacing Update ===== */
.single-product .wc-save-product-btn,
.single-product .wc-save-product-channels-btn {
    margin-top: 6px !important;
}

.single-product .single_add_to_cart_button {
    margin-bottom: 6px !important;
}


/* ===== Ultra Compact Spacing Fix ===== */

/* Remove WooCommerce default spacing */
.single-product div.product .summary > * {
    margin-bottom: 6px !important;
}

/* Tight spacing between Comprar and plugin buttons */
.single-product .single_add_to_cart_button {
    margin-bottom: 4px !important;
}

/* Plugin buttons spacing */
.single-product .wc-save-product-btn,
.single-product .wc-save-product-channels-btn {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}


/* ===== Super Compact Spacing ===== */

.single-product div.product .summary > * {
    margin-bottom: 4px !important;
}

.single-product .single_add_to_cart_button {
    margin-bottom: 2px !important;
}

.single-product .wc-save-product-btn,
.single-product .wc-save-product-channels-btn {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}
