/**
 * Sunta Extension Styles
 */

/* Add to Basket Button */
.sunta-add-to-basket-wrapper {
    margin: 15px 0;
}

.sunta-add-to-basket-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background-color: #DC2626;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sunta-add-to-basket-btn::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.sunta-add-to-basket-btn:hover {
    background-color: #B91C1C;
}


.sunta-add-to-basket-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Basket Items Display */
.sunta-basket-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.sunta-basket-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.sunta-basket-empty {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    color: #666;
}

.sunta-basket-items {
    margin-bottom: 30px;
}

.sunta-basket-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sunta-basket-item:hover {
    background-color: #f0f0f0;
}

.sunta-basket-item-image {
    flex-shrink: 0;
    width: 80px;
    margin-right: 15px;
}

.sunta-basket-item-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.sunta-basket-item-details {
    flex-grow: 1;
}

.sunta-basket-item-name {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.sunta-basket-item-name a {
    color: #333;
    text-decoration: none;
}

.sunta-basket-item-name a:hover {
    color: #2c3e50;
}

.sunta-basket-item-sku {
    font-size: 13px;
    color: #888;
}

.sunta-remove-from-basket {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sunta-remove-from-basket:hover {
    color: #e74c3c;
}

/* Inquiry Form */
.sunta-inquiry-form-wrapper {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
}

.sunta-inquiry-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.sunta-inquiry-message {
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.sunta-inquiry-message strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.sunta-inquiry-message p {
    margin: 0;
    font-size: 14px;
}

.sunta-inquiry-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.sunta-inquiry-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.sunta-inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sunta-form-row {
    display: flex;
    flex-direction: column;
}

.sunta-form-row label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.sunta-form-row label .required {
    color: #e74c3c;
}

.sunta-form-row input[type="text"],
.sunta-form-row input[type="email"],
.sunta-form-row textarea,
.sunta-form-row select {
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.sunta-form-row input[type="text"]:focus,
.sunta-form-row input[type="email"]:focus,
.sunta-form-row textarea:focus,
.sunta-form-row select:focus {
    outline: none;
    border-color: #2c3e50;
}

.sunta-form-row textarea {
    resize: vertical;
    min-height: 80px;
}

.sunta-submit-inquiry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background-color: #27ae60;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.sunta-submit-inquiry-btn:hover {
    background-color: #1e8449;
}

.sunta-submit-inquiry-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Basket Notification */
.sunta-basket-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 20px 30px;
    background-color: #27ae60;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
}

.sunta-basket-notification::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
}

.sunta-basket-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.sunta-basket-notification a {
    color: #fff;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.sunta-basket-notification a:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

.sunta-basket-notification--info {
    background-color: #3498db;
}

.sunta-basket-notification--info::before {
    content: "ℹ";
}

/* Basket Icon with Count Badge */
.sunta-basket-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #5d5d5d;
}

.sunta-basket-icon {
    width: 24px;
    height: 24px;
}

.sunta-basket-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background-color: #e74c3c;
    border-radius: 9px;
}

/* Responsive */
@media (max-width: 600px) {
    .sunta-basket-wrapper {
        padding: 15px;
    }

    .sunta-basket-item {
        flex-wrap: wrap;
    }

    .sunta-basket-item-image {
        width: 60px;
    }

    .sunta-inquiry-form-wrapper {
        padding: 20px;
    }

    .sunta-basket-notification {
        left: 15px;
        right: 15px;
        min-width: auto;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}



