/**
 * Port Trust & Announcements - Trust Stack Styles
 * Clean, professional trust badges for product pages
 */

/* =====================================================
   TRUST STACK CONTAINER
   ===================================================== */

.pta-trust-stack {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* =====================================================
   TRUST ITEMS
   ===================================================== */

.pta-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pta-trust-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pta-trust-item:first-child {
    padding-top: 0;
}

/* Icon */
.pta-trust-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

/* Text */
.pta-trust-text {
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    flex: 1;
}

/* =====================================================
   CONTACT LINKS
   ===================================================== */

.pta-trust-contacts {
    display: inline-flex;
    gap: 8px;
    margin-right: 8px;
}

.pta-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #e3f2fd;
    color: #1565c0;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pta-contact-link:hover {
    background: #bbdefb;
    color: #0d47a1;
    text-decoration: none;
}

.pta-contact-link.pta-whatsapp {
    background: #e8f5e9;
    color: #2e7d32;
}

.pta-contact-link.pta-whatsapp:hover {
    background: #c8e6c9;
    color: #1b5e20;
}

.pta-contact-link.pta-phone::before {
    content: "📞";
    font-size: 11px;
}

.pta-contact-link.pta-whatsapp::before {
    content: "";
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232e7d32'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 480px) {
    .pta-trust-stack {
        margin: 15px 0;
        padding: 14px;
    }

    .pta-trust-item {
        gap: 10px;
        padding: 8px 0;
    }

    .pta-trust-icon {
        font-size: 18px;
        width: 24px;
    }

    .pta-trust-text {
        font-size: 13px;
    }

    .pta-trust-contacts {
        display: flex;
        flex-wrap: wrap;
        margin-right: 0;
        margin-top: 6px;
    }

    .pta-contact-link {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* =====================================================
   RTL SUPPORT
   ===================================================== */

[dir="rtl"] .pta-trust-stack {
    text-align: right;
}

[dir="rtl"] .pta-trust-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .pta-trust-contacts {
    margin-right: 0;
    margin-left: 8px;
}

/* =====================================================
   POSITION VARIANTS
   ===================================================== */

/* When placed above the button */
.woocommerce-product-gallery + .pta-trust-stack,
form.cart ~ .pta-trust-stack {
    margin-top: 25px;
}

/* Compact variant for tight spaces */
.pta-trust-stack.pta-compact .pta-trust-item {
    padding: 6px 0;
}

.pta-trust-stack.pta-compact .pta-trust-icon {
    font-size: 16px;
}

.pta-trust-stack.pta-compact .pta-trust-text {
    font-size: 13px;
}

/* =====================================================
   THEME COMPATIBILITY
   ===================================================== */

/* Storefront */
.storefront .pta-trust-stack {
    max-width: 100%;
}

/* Astra */
.ast-single-product .pta-trust-stack {
    margin-top: 20px;
}

/* OceanWP */
.owp-content-area .pta-trust-stack {
    margin: 20px 0;
}

/* =====================================================
   CHECKOUT TRUST STACK
   ===================================================== */

.pta-checkout-trust {
    margin: 20px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
}

.pta-trust-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

.pta-trust-header-icon {
    font-size: 20px;
}

.pta-trust-header-text {
    font-size: 15px;
    font-weight: 600;
    color: #2e7d32;
}

.pta-checkout-trust .pta-trust-item {
    padding: 6px 0;
    border-bottom: none;
}

.pta-checkout-trust .pta-trust-item:last-child {
    padding-bottom: 0;
}

.pta-checkout-trust .pta-trust-icon {
    font-size: 16px;
    width: 24px;
}

.pta-checkout-trust .pta-trust-text {
    font-size: 13px;
    color: #37474f;
}

/* Compact layout for checkout on desktop */
@media (min-width: 768px) {
    .pta-checkout-trust {
        display: block;
    }

    .pta-checkout-trust .pta-trust-header {
        margin-bottom: 8px;
    }

    .pta-checkout-trust .pta-trust-item {
        padding: 4px 0;
    }

    .pta-checkout-trust .pta-trust-text {
        word-break: break-word;
    }

    .pta-checkout-trust .pta-trust-contacts {
        display: inline-flex;
        flex-wrap: wrap;
    }
}

/* Mobile checkout */
@media (max-width: 480px) {
    .pta-checkout-trust {
        margin: 15px 0;
        padding: 14px;
    }

    .pta-checkout-trust .pta-trust-item {
        padding: 5px 0;
    }
}

/* RTL checkout */
[dir="rtl"] .pta-checkout-trust .pta-trust-header {
    flex-direction: row-reverse;
}
