/* The Woman Store Product Buttons - Unified Container Styles */

/* Container for all product action buttons */
.tws-product-buttons-container {
    margin: 20px 0;
    width: 100%;
}

.tws-product-buttons-row {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

/* Individual button wrapper */
.tws-button-wrapper {
    flex: 0 0 auto;
    min-width: 0; /* Prevent flex items from overflowing */
}

/* Ensure buttons have consistent sizing in the row */
.tws-button-wrapper .tws-size-chart-button,
.tws-button-wrapper .tws-logo-button {
    min-width: 160px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Remove individual section margins when in unified container */
.tws-product-buttons-container .tws-size-chart-section,
.tws-product-buttons-container .tws-logo-customization-section {
    margin: 0;
    text-align: left;
}

/* Size Chart Button Specific Styling in Container */
.tws-button-wrapper .tws-size-chart-button {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
}

.tws-button-wrapper .tws-size-chart-button:hover {
    background: linear-gradient(135deg, #f06292 0%, #e91e63 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.tws-button-wrapper .tws-size-chart-button:focus {
    outline: 3px solid rgba(233, 30, 99, 0.3);
    outline-offset: 2px;
}

/* Logo Button Specific Styling in Container */
.tws-button-wrapper .tws-logo-button {
    background: linear-gradient(135deg, #446084 0%, #5a7ba0 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(68, 96, 132, 0.2);
}

.tws-button-wrapper .tws-logo-button:hover {
    background: linear-gradient(135deg, #5a7ba0 0%, #446084 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 96, 132, 0.3);
}

.tws-button-wrapper .tws-logo-button:focus {
    outline: 3px solid rgba(68, 96, 132, 0.3);
    outline-offset: 2px;
}

/* Active button state */
.tws-button-wrapper .tws-size-chart-button:active,
.tws-button-wrapper .tws-logo-button:active {
    transform: translateY(0);
}

/* Icon and text styling */
.tws-button-wrapper .tws-size-chart-icon,
.tws-button-wrapper .tws-logo-icon {
    font-size: 18px;
    display: inline-block;
}

.tws-button-wrapper .tws-size-chart-text,
.tws-button-wrapper .tws-logo-text {
    font-family: inherit;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tws-product-buttons-row {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .tws-button-wrapper {
        flex: 1 1 auto;
        width: 100%;
    }
    
    .tws-button-wrapper .tws-size-chart-button,
    .tws-button-wrapper .tws-logo-button {
        width: 100%;
        min-width: auto;
        justify-content: center;
        padding: 14px 20px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .tws-product-buttons-container {
        margin: 15px 0;
    }
    
    .tws-product-buttons-row {
        gap: 10px;
    }
    
    .tws-button-wrapper .tws-size-chart-button,
    .tws-button-wrapper .tws-logo-button {
        font-size: 14px;
        padding: 12px 16px;
        height: 46px;
    }
    
    .tws-button-wrapper .tws-size-chart-text,
    .tws-button-wrapper .tws-logo-text {
        font-size: 14px;
    }
    
    .tws-button-wrapper .tws-size-chart-icon,
    .tws-button-wrapper .tws-logo-icon {
        font-size: 16px;
    }
}

/* Flatsome Theme Compatibility */
.flatsome-theme .tws-product-buttons-container,
.ux-section .tws-product-buttons-container,
.col .tws-product-buttons-container {
    margin: 15px 0;
}

.flatsome-theme .tws-button-wrapper .tws-size-chart-button,
.flatsome-theme .tws-button-wrapper .tws-logo-button {
    font-family: inherit;
}

/* Print Styles */
@media print {
    .tws-product-buttons-container {
        display: none;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .tws-button-wrapper .tws-size-chart-button,
    .tws-button-wrapper .tws-logo-button {
        transition: none;
    }
    
    .tws-button-wrapper .tws-size-chart-button:hover,
    .tws-button-wrapper .tws-logo-button:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tws-button-wrapper .tws-size-chart-button,
    .tws-button-wrapper .tws-logo-button {
        border: 2px solid currentColor;
    }
}

/* Focus visible for keyboard navigation */
.tws-button-wrapper .tws-size-chart-button:focus-visible,
.tws-button-wrapper .tws-logo-button:focus-visible {
    outline: 3px solid;
    outline-offset: 2px;
}
