/**
 * Wisly - Frontend Styles
 *
 * @package Wisly
 * @since 1.0.0
 */

/* ==========================================================================
   Wishlist Button Styles
   ========================================================================== */

.asw-wishlist-button-wrapper {
    margin: 10px 0;
}

.asw-wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid transparent;
    background: #EEEEEE;
    color: var(--asw-text-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    line-height: 1;
    min-height: 40px;
    position: relative;
    overflow: hidden;
}

.asw-wishlist-btn:hover {
    background: #DDDDDD;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-top-color: transparent !important;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
}

.asw-wishlist-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-color: #218838;
}

.asw-wishlist-btn.added {
    background: #28a745;
    border-color: #28a745;
}

.asw-wishlist-btn.added:hover {
    background: #218838;
    border-color: #218838;
}

.asw-wishlist-btn .asw-icon,
.asw-wishlist-btn .asw-icon:before {
    line-height: 1;
    color: var(--asw-icon-color) !important;
}

.asw-wishlist-btn .asw-text {
    font-weight: 500;
    color: var(--asw-text-color);
}

/* Button sizes */
.asw-wishlist-btn.small {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 32px;
}

.asw-wishlist-btn.small .asw-icon {
    font-size: 14px;
}

.asw-wishlist-btn.large {
    padding: 14px 20px;
    font-size: 16px;
    min-height: 48px;
}

.asw-wishlist-btn.large .asw-icon {
    font-size: 18px;
}

/* Button styles */
.asw-wishlist-btn.rounded {
    border-radius: 25px;
}

.asw-wishlist-btn.outline {
    background: transparent;
    color: var(--asw-text-color);
}

.asw-wishlist-btn.outline:hover {
    background: var(--asw-text-color);
    color: white;
}

.asw-wishlist-btn.outline.added {
    background: transparent;
    color: #28a745;
}

.asw-wishlist-btn.outline.added:hover {
    background: #28a745;
    color: white;
}

.asw-wishlist-btn.ghost {
    background: transparent;
    border-color: transparent;
    color: var(--asw-text-color);
}

.asw-wishlist-btn.ghost:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--asw-text-color);
}

.asw-wishlist-btn.ghost.added {
    color: #28a745;
}

.asw-wishlist-btn.ghost.added:hover {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

/* Loading state */
.asw-wishlist-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.asw-wishlist-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: asw-spin 1s linear infinite;
}

@keyframes asw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loop specific styles */
.asw-wishlist-btn.loop {
    width: 100%;
    margin-top: 10px;
    outline-offset: 2px;
}

/* Link style button */
.asw-wishlist-btn.asw-wishlist-link {
    background: none !important;
    border: none !important;
    color: var(--asw-text-color) !important;
    font-size: 1.1em;
    font-weight: 500;
    padding: 0;
    margin: 0;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: none;
}

.asw-wishlist-btn.asw-wishlist-link .asw-icon {
    font-size: 1.1em;
    color: var(--asw-icon-color);
    transition: none;
}

.asw-wishlist-btn.asw-wishlist-link:hover,
.asw-wishlist-btn.asw-wishlist-link:focus {
    text-decoration: underline;
    outline: none;
}

.asw-wishlist-btn.asw-wishlist-link:hover .asw-icon,
.asw-wishlist-btn.asw-wishlist-link:focus .asw-icon {
    color: var(--asw-icon-color);
}

/* Overlay (on image) wishlist button styles */
.asw-wishlist-btn.overlay {
    background: rgba(255, 255, 255, 0.8) !important;
    border: none !important;
    color: #000 !important;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.asw-wishlist-btn.overlay:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.asw-wishlist-btn.overlay .asw-icon svg {
    fill: none;
    stroke: #000;
    stroke-width: 1.5;
}

.asw-wishlist-btn.overlay.added .asw-icon svg {
    fill: #e74c3c;
    stroke: #e74c3c;
}

.asw-wishlist-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 99;
}

.asw-wishlist-overlay .asw-wishlist-btn .asw-text {
    display: none !important;
}

a.ast-on-card-button.ast-select-options-trigger.product_type_simple.add_to_cart_button.ajax_add_to_cart {
    opacity: 0 !important;
}

/* Responsive styles for wishlist buttons */
@media (max-width: 768px) {
    .asw-wishlist-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 36px;
    }
    
    .asw-wishlist-btn .asw-icon {
        font-size: 14px;
    }
    
    .asw-wishlist-btn .asw-text {
        display: none;
    }
    
    .asw-wishlist-btn.loop .asw-text {
        display: inline;
    }
}

/* RTL support for wishlist buttons */
.rtl .asw-wishlist-btn {
    direction: rtl;
}

/* Accessibility for wishlist buttons */
.asw-wishlist-btn:focus {
    outline: 2px solid var(--asw-text-color);
    outline-offset: 2px;
}

/* High contrast mode for wishlist buttons */
@media (prefers-contrast: high) {
    .asw-wishlist-btn {
        border-width: 3px;
    }
}

/* Reduced motion for wishlist buttons */
@media (prefers-reduced-motion: reduce) {
    .asw-wishlist-btn {
        transition: none;
    }
    
    .asw-wishlist-btn:hover {
        transform: none;
    }
    
    .asw-wishlist-btn:active {
        transform: none;
    }
}

/* Print styles for wishlist buttons */
@media print {
    .asw-wishlist-btn {
        display: none;
    }
}

.asw-wishlist-btn.added:hover::after {
    opacity: 1;
}

.asw-wishlist-row .asw-action-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    white-space: nowrap;
}

.asw-wishlist-btn .asw-icon {
    font-size: 16px;
    line-height: 1;
}

.asw-wishlist-btn .asw-icon svg,
.asw-wishlist-btn .asw-icon img {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
    /* Debug: Add a background to see if SVG is present */
    /* background-color: rgba(255, 0, 0, 0.1); */
}

/* Make overlay buttons larger */
.asw-wishlist-btn.overlay .asw-icon svg,
.asw-wishlist-btn.overlay .asw-icon img {
    width: 20px;
    height: 20px;
}

/* Added state - make heart red */
.asw-wishlist-btn.added .asw-icon svg,
.asw-wishlist-btn.added .asw-icon img {
    fill: #e74c3c !important;
    color: #e74c3c !important;
}

/* Overlay added state */
.asw-wishlist-btn.overlay.added .asw-icon svg,
.asw-wishlist-btn.overlay.added .asw-icon img {
    fill: #e74c3c !important;
    color: #e74c3c !important;
}

/* Clean up - no fallback needed since data URI works reliably */

.asw-wishlist-btn .asw-text {
    white-space: nowrap;
}

.asw-wishlist-btn .asw-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.asw-wishlist-btn .asw-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: asw-spin 1s ease-in-out infinite;
}

@keyframes asw-spin {
    to {
        transform: rotate(360deg);
    }
}

.asw-wishlist-btn.loading .asw-text,
.asw-wishlist-btn.loading .asw-icon {
    opacity: 0;
}

.asw-wishlist-btn.loading .asw-loading {
    display: block;
}

/* Loop button styles */
.asw-wishlist-btn.loop {
    padding: 8px 16px;
    font-size: 12px;
}

.asw-wishlist-btn.loop .asw-icon {
    font-size: 14px;
}

.asw-wishlist-btn.loop .asw-icon svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Wishlist Page Styles
   ========================================================================== */

.asw-wishlist-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.asw-wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.asw-wishlist-header h1 {
    margin: 0;
    color: #333;
    font-size: 2em;
}

.asw-wishlist-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.asw-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.asw-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 16px;
}

.asw-share-facebook {
    background-color: #3b5998;
}

.asw-share-twitter {
    background-color: #1da1f2;
}

.asw-share-whatsapp {
    background-color: #25d366;
}

.asw-share-email {
    background-color: #ea4335;
}

.asw-share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.asw-wishlist-empty {
    text-align: center;
    padding: 60px 20px;
}

.asw-empty-icon {
    font-size: 4em;
    color: #ccc;
    margin-bottom: 20px;
}

.asw-wishlist-empty h2 {
    color: #666;
    margin-bottom: 10px;
}

.asw-wishlist-empty p {
    color: #999;
    margin-bottom: 30px;
}

.asw-wishlist-items {
    display: grid;
    gap: 20px;
}

.asw-wishlist-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.asw-wishlist-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.asw-item-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.asw-item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.asw-item-title {
    margin: 0;
    font-size: 1.2em;
}

.asw-item-title a {
    color: #333;
    text-decoration: none;
}

.asw-item-title a:hover {
    color: #e74c3c;
}

.asw-item-price {
    font-size: 1.1em;
    font-weight: bold;
    color: #e74c3c;
}

.asw-item-stock {
    margin-top: 5px;
}

.asw-stock-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

.asw-stock-status.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.asw-stock-status.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

.asw-stock-status.on-backorder {
    background-color: #fff3cd;
    color: #856404;
}

.asw-item-date {
    font-size: 0.9em;
    color: #666;
}

.asw-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.asw-item-actions .button {
    min-width: 120px;
}

.asw-remove-from-wishlist {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.asw-remove-from-wishlist:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

.asw-wishlist-footer {
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

.asw-item-count {
    color: #666;
    font-size: 1.1em;
}

.asw-share-buttons button {
    padding: 0 !important;
}

/* ==========================================================================
   Wishlist Table Styles
   ========================================================================== */

.asw-wishlist-table-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.asw-table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.asw-wishlist-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.asw-wishlist-table th {
    background: #f8f9fa;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
}

.asw-wishlist-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.asw-wishlist-table tr:hover {
    background-color: #f8f9fa;
}

.asw-col-image {
    width: 80px;
}

.asw-col-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.asw-col-name {
    min-width: 200px;
}

.asw-product-name {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 500;
}

.asw-product-name a {
    color: #333;
    text-decoration: none;
}

.asw-product-name a:hover {
    color: #e74c3c;
}

.asw-product-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.asw-col-price {
    width: 120px;
}

.asw-product-price {
    font-size: 16px;
    font-weight: bold;
    color: #e74c3c;
}

.asw-col-stock {
    width: 100px;
}

.asw-col-date {
    width: 120px;
}

.asw-date-added {
    font-size: 13px;
    color: #666;
}

.asw-col-actions {
    width: 150px;
}

.asw-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.asw-action-buttons .button {
    font-size: 12px;
    padding: 6px 12px;
    min-width: 100px;
}

/* ==========================================================================
   Wishlist Count Styles
   ========================================================================== */

.asw-wishlist-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.asw-wishlist-count:hover {
    background-color: #e9ecef;
    color: #333;
    text-decoration: none;
}

.asw-wishlist-count .asw-icon {
    color: #e74c3c;
    font-size: 16px;
}

.asw-wishlist-count .asw-count {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.asw-wishlist-item.loading,
.asw-wishlist-row.loading {
    opacity: 0.6;
    pointer-events: none;
}

.asw-wishlist-item.loading::after,
.asw-wishlist-row.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #e74c3c;
    border-radius: 50%;
    animation: asw-spin 1s linear infinite;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    .asw-wishlist-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .asw-wishlist-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .asw-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        margin-top: 15px;
    }
    
    .asw-item-actions .button {
        min-width: auto;
        flex: 1;
        max-width: 150px;
    }
    
    .asw-wishlist-table {
        font-size: 12px;
    }
    
    .asw-wishlist-table th,
    .asw-wishlist-table td {
        padding: 10px 5px;
    }
    
    .asw-col-image {
        width: 60px;
    }
    
    .asw-col-image img {
        width: 50px;
        height: 50px;
    }
    
    .asw-col-name {
        min-width: 150px;
    }
    
    .asw-product-name {
        font-size: 14px;
    }
    
    .asw-col-price,
    .asw-col-stock,
    .asw-col-date {
        width: 80px;
    }
    
    .asw-col-actions {
        width: 120px;
    }
    
    .asw-action-buttons .button {
        font-size: 11px;
        padding: 4px 8px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .asw-wishlist-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .asw-item-image {
        max-width: 150px;
        margin: 0 auto;
    }
    
    .asw-item-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .asw-item-actions .button {
        max-width: none;
    }
    
    .asw-wishlist-table {
        display: block;
    }
    
    .asw-wishlist-table thead {
        display: none;
    }
    
    .asw-wishlist-table tbody {
        display: block;
    }
    
    .asw-wishlist-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 15px;
        background: white;
    }
    
    .asw-wishlist-table td {
        display: block;
        border: none;
        padding: 8px 0;
        text-align: center;
    }
    
    .asw-col-image {
        width: auto;
        text-align: center;
    }
    
    .asw-col-image img {
        width: 80px;
        height: 80px;
    }
    
    .asw-action-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .asw-action-buttons .button {
        min-width: auto;
        flex: 1;
        max-width: 120px;
    }
}

/* ==========================================================================
   RTL Support
   ========================================================================== */

.rtl .asw-wishlist-item {
    direction: rtl;
}

.rtl .asw-item-actions {
    align-items: flex-start;
}

.rtl .asw-wishlist-table th,
.rtl .asw-wishlist-table td {
    text-align: right;
}

.rtl .asw-action-buttons {
    align-items: flex-end;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.asw-wishlist-item:focus-within,
.asw-wishlist-table:focus-within {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

.asw-wishlist-btn:focus {
    outline: 2px solid var(--asw-button-color, #e74c3c);
    outline-offset: 2px;
}

.asw-wishlist-btn:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================================================
   High Contrast Mode
   ========================================================================== */

@media (prefers-contrast: high) {
    .asw-wishlist-item,
    .asw-wishlist-table {
        border: 2px solid currentColor;
    }
    
    .asw-wishlist-btn {
        border: 2px solid currentColor;
    }
    
    .asw-stock-status {
        border: 1px solid currentColor;
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .asw-wishlist-btn,
    .asw-wishlist-item,
    .asw-share-btn {
        transition: none;
    }
    
    .asw-wishlist-btn:hover,
    .asw-wishlist-item:hover {
        transform: none;
    }
    
    .asw-share-btn:hover {
        transform: none;
    }
    
    .asw-wishlist-btn .asw-spinner {
        animation: none;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .asw-wishlist-btn,
    .asw-item-actions,
    .asw-share-buttons,
    .asw-wishlist-actions {
        display: none !important;
    }
    
    .asw-wishlist-item {
        break-inside: avoid;
        border: 1px solid #000;
    }
    
    .asw-wishlist-table {
        border-collapse: collapse;
    }
    
    .asw-wishlist-table th,
    .asw-wishlist-table td {
        border: 1px solid #000;
    }
}

/* ==========================================================================
   Floating Wishlist Icon
   ========================================================================== */

.asw-floating-icon {
    position: fixed;
    z-index: 9999;
    transition: all 0.3s ease;
    cursor: pointer;
}

.asw-floating-icon__link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.asw-floating-icon__icon {
    font-size: 20px;
    line-height: 1;
    color: #e74c3c;
}

.asw-floating-icon__count {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    transition: all 0.3s ease;
}

/* Position styles */
.asw-floating-icon--top_right {
    top: 20px;
    right: 20px;
}

.asw-floating-icon--top_left {
    top: 20px;
    left: 20px;
}

.asw-floating-icon--bottom_right {
    bottom: 20px;
    right: 20px;
}

.asw-floating-icon--bottom_left {
    bottom: 20px;
    left: 20px;
}

.asw-floating-icon--header {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

/* Style variations */
.asw-floating-icon--circle .asw-floating-icon__link {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #e74c3c;
}

.asw-floating-icon--circle:hover .asw-floating-icon__link {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.asw-floating-icon--square .asw-floating-icon__link {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #e74c3c;
}

.asw-floating-icon--square:hover .asw-floating-icon__link {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.asw-floating-icon--minimal .asw-floating-icon__link {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.asw-floating-icon--minimal:hover .asw-floating-icon__link {
    background-color: rgba(255, 255, 255, 1);
    border-color: #e74c3c;
}

/* Header position specific styles */
.asw-floating-icon--header .asw-floating-icon__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.asw-floating-icon--header .asw-floating-icon__icon {
    font-size: 18px;
}

.asw-floating-icon--header .asw-floating-icon__count {
    margin-left: 8px;
}

/* Hover effects */
.asw-floating-icon:hover .asw-floating-icon__icon {
    color: #c0392b;
    transform: scale(1.1);
}

.asw-floating-icon:hover .asw-floating-icon__count {
    background-color: #c0392b;
    transform: scale(1.1);
}

/* Animation for count updates */
.asw-floating-icon__count {
    animation: asw-count-pulse 0.3s ease-in-out;
}

@keyframes asw-count-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Empty state */
.asw-floating-icon__count:empty,
.asw-floating-icon__count:contains("0") {
    display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .asw-floating-icon--top_right,
    .asw-floating-icon--top_left {
        top: 10px;
    }
    
    .asw-floating-icon--top_right {
        right: 10px;
    }
    
    .asw-floating-icon--top_left {
        left: 10px;
    }
    
    .asw-floating-icon--bottom_right,
    .asw-floating-icon--bottom_left {
        bottom: 10px;
    }
    
    .asw-floating-icon--bottom_right {
        right: 10px;
    }
    
    .asw-floating-icon--bottom_left {
        left: 10px;
    }
    
    .asw-floating-icon--circle .asw-floating-icon__link,
    .asw-floating-icon--square .asw-floating-icon__link {
        width: 50px;
        height: 50px;
    }
    
    .asw-floating-icon__icon {
        font-size: 18px;
    }
    
    .asw-floating-icon__count {
        min-width: 18px;
        height: 18px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .asw-floating-icon--circle .asw-floating-icon__link,
    .asw-floating-icon--square .asw-floating-icon__link {
        width: 45px;
        height: 45px;
    }
    
    .asw-floating-icon__icon {
        font-size: 16px;
    }
    
    .asw-floating-icon__count {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
    }
}

/* Accessibility */
.asw-floating-icon:focus-within {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .asw-floating-icon--circle .asw-floating-icon__link,
    .asw-floating-icon--square .asw-floating-icon__link {
        border-width: 3px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .asw-floating-icon,
    .asw-floating-icon__link,
    .asw-floating-icon__icon,
    .asw-floating-icon__count {
        transition: none;
        animation: none;
    }
    
    .asw-floating-icon:hover .asw-floating-icon__link {
        transform: none;
    }
}

/* Print styles */
@media print {
    .asw-floating-icon {
        display: none;
    }
}

/* RTL support */
.rtl .asw-floating-icon__count {
    margin-left: 0;
    margin-right: 5px;
}

.rtl .asw-floating-icon--header .asw-floating-icon__count {
    margin-left: 0;
    margin-right: 8px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .asw-floating-icon--circle .asw-floating-icon__link,
    .asw-floating-icon--square .asw-floating-icon__link {
        background-color: #2c3e50;
        border-color: #e74c3c;
    }
    
    .asw-floating-icon--minimal .asw-floating-icon__link {
        background-color: rgba(44, 62, 80, 0.9);
        border-color: rgba(231, 76, 60, 0.5);
    }
    
    .asw-floating-icon--minimal:hover .asw-floating-icon__link {
        background-color: rgba(44, 62, 80, 1);
    }
}

/* ==========================================================================
   Social Sharing Buttons
   ========================================================================== */

.asw-sharing-buttons {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.asw-sharing-buttons h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.asw-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.asw-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.asw-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.asw-share-btn:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.asw-share-icon {
    line-height: 1;
    font-family: Arial, sans-serif;
}

/* Facebook */
.asw-share-facebook {
    background-color: #1877f2;
}

.asw-share-facebook:hover {
    background-color: #166fe5;
}

/* Twitter */
.asw-share-twitter {
    background-color: #1da1f2;
}

.asw-share-twitter:hover {
    background-color: #1a91da;
}

/* WhatsApp */
.asw-share-whatsapp {
    background-color: #25d366;
}

.asw-share-whatsapp:hover {
    background-color: #22c55e;
}

/* Email */
.asw-share-email {
    background-color: #ea4335;
}

.asw-share-email:hover {
    background-color: #d93025;
}

/* Pinterest */
.asw-share-pinterest {
    background-color: #bd081c;
}

.asw-share-pinterest:hover {
    background-color: #a8071a;
}

/* LinkedIn */
.asw-share-linkedin {
    background-color: #0077b5;
}

.asw-share-linkedin:hover {
    background-color: #006097;
}

/* Alternative style - Square buttons */
.asw-share-buttons.asw-share-square .asw-share-btn {
    border-radius: 6px;
    width: 45px;
    height: 45px;
}

/* Alternative style - Text buttons */
.asw-share-buttons.asw-share-text .asw-share-btn {
    border-radius: 20px;
    width: auto;
    height: 35px;
    padding: 0 15px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asw-share-buttons.asw-share-text .asw-share-icon {
    margin-right: 5px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .asw-sharing-buttons {
        padding: 15px;
        margin: 15px 0;
    }
    
    .asw-share-buttons {
        gap: 8px;
    }
    
    .asw-share-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .asw-share-buttons.asw-share-square .asw-share-btn {
        width: 40px;
        height: 40px;
    }
    
    .asw-share-buttons.asw-share-text .asw-share-btn {
        height: 30px;
        padding: 0 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .asw-share-buttons {
        justify-content: center;
    }
    
    .asw-share-btn {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    
    .asw-share-buttons.asw-share-square .asw-share-btn {
        width: 36px;
        height: 36px;
    }
    
    .asw-share-buttons.asw-share-text .asw-share-btn {
        height: 28px;
        padding: 0 10px;
        font-size: 10px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .asw-share-btn {
        transition: none;
    }
    
    .asw-share-btn:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .asw-share-btn {
        border: 2px solid currentColor;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .asw-sharing-buttons {
        background-color: #2c3e50;
        border-color: #34495e;
    }
    
    .asw-sharing-buttons h4 {
        color: #ecf0f1;
    }
}

/* Print styles */
@media print {
    .asw-sharing-buttons {
        display: none;
    }
}

/* RTL support */
.rtl .asw-share-buttons.asw-share-text .asw-share-icon {
    margin-right: 0;
    margin-left: 5px;
}

/* Loading state */
.asw-share-btn.asw-loading {
    pointer-events: none;
    opacity: 0.7;
}

.asw-share-btn.asw-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: asw-spin 1s linear infinite;
}

@keyframes asw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Merge Notice
   ========================================================================== */

.asw-merge-notice {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 20px;
    margin: 20px 0;
    border-radius: 4px;
    position: relative;
    animation: asw-slide-in 0.3s ease-out;
}

.asw-merge-notice::before {
    content: '✓';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #28a745;
}

.asw-merge-notice {
    padding-left: 35px;
}

@keyframes asw-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .asw-merge-notice {
        background-color: #1e3a2e;
        border-color: #2d5a3d;
        color: #d4edda;
    }
    
    .asw-merge-notice::before {
        color: #4ade80;
    }
}

/* ==========================================================================
   Toast Notification Styles
   ========================================================================== */

.asw-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    z-index: 9999;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: none;
    max-width: 90%;
    text-align: center;
    animation: asw-toast-slide-up 0.3s ease-out;
}

.asw-toast.success {
    background: #27ae60;
}

.asw-toast.error {
    background: #e74c3c;
}

.asw-toast .asw-view-wishlist-link {
    color: #fff;
    text-decoration: underline;
    margin-left: 10px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.asw-toast .asw-view-wishlist-link:hover {
    color: #f0f0f0;
    text-decoration: none;
}

@keyframes asw-toast-slide-up {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive toast */
@media (max-width: 768px) {
    .asw-toast {
        bottom: 20px;
        padding: 12px 20px;
        font-size: 14px;
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .asw-toast {
        bottom: 15px;
        padding: 10px 16px;
        font-size: 13px;
        max-width: 98%;
    }
    
    .asw-toast .asw-view-wishlist-link {
        display: block;
        margin: 5px 0 0 0;
    }
}

/* Dark mode toast */
@media (prefers-color-scheme: dark) {
    .asw-toast {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .asw-toast.success {
        background: #27ae60;
    }
    
    .asw-toast.error {
        background: #e74c3c;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .asw-toast {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .asw-toast {
        border: 2px solid currentColor;
    }
    
    .asw-toast .asw-view-wishlist-link {
        border: 1px solid currentColor;
        padding: 2px 4px;
    }
}

/* Share bar redesign for bottom section */
.asw-share-buttons-bottom {
    border-top: 1px solid #eee;
    padding-top: 24px;
    margin-top: 24px;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.asw-share-buttons-bottom > span {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}
.asw-share-buttons-bottom > div {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.asw-share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: none;
    color: #fff;
    background: #6c757d;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    outline: none;
}
.asw-share-btn .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    line-height: 1;
}
.asw-share-btn.asw-share-facebook { background: #1877f2; }
.asw-share-btn.asw-share-twitter { background: #1da1f2; }
.asw-share-btn.asw-share-whatsapp { background: #25d366; }
.asw-share-btn.asw-share-email { background: #ea4335; }

.asw-share-btn:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    filter: brightness(1.1);
}

@media (max-width: 600px) {
    .asw-share-buttons-bottom > div {
        gap: 10px;
    }
    .asw-share-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .asw-share-btn .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 600px) {
  .asw-wishlist-table-wrapper {
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }
  .asw-wishlist-table {
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }
  .asw-wishlist-table tr {
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #fff !important;
    margin-bottom: 0 !important;
  }
  .asw-wishlist-table td {
    padding: 10px 6px !important;
    border-bottom: 1px solid #eee !important;
  }
} 