.wc-ecbn-wrapper {
    display: inline-block;
    width: 100%;
}

.wc-ecbn-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wc-ecbn-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #2271b1;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wc-ecbn-button:hover {
    background-color: #135e96;
    color: #ffffff;
}

.wc-ecbn-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wc-ecbn-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wc-ecbn-popup {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.wc-ecbn-popup-inner {
    padding: 20px;
    overflow-y: auto;
    max-height: 90vh;
}

.wc-ecbn-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.wc-ecbn-popup-close:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.1);
}

.wc-ecbn-popup-product {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-right: 35px;
}

.wc-ecbn-popup-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.wc-ecbn-popup-product-info {
    flex: 1;
}

.wc-ecbn-popup-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
}

.wc-ecbn-popup-price {
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
}

.wc-ecbn-popup-price del {
    color: #999;
    font-weight: 400;
    font-size: 14px;
    margin-right: 8px;
}

.wc-ecbn-variations {
    margin-bottom: 20px;
}

.wc-ecbn-variation-item {
    margin-bottom: 15px;
}

.wc-ecbn-variation-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.wc-ecbn-variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wc-ecbn-variation-option {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wc-ecbn-variation-option:hover {
    border-color: #2271b1;
}

.wc-ecbn-variation-option.active {
    background-color: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.wc-ecbn-quantity-section {
    margin-bottom: 20px;
}

.wc-ecbn-quantity-wrapper {
    display: inline-flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.wc-ecbn-qty-btn {
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border: none;
    font-size: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.wc-ecbn-qty-btn:hover {
    background: #e8e8e8;
}

.wc-ecbn-quantity-input {
    width: 60px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.wc-ecbn-quantity-input::-webkit-outer-spin-button,
.wc-ecbn-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wc-ecbn-quantity-input[type=number] {
    -moz-appearance: textfield;
}

.wc-ecbn-popup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wc-ecbn-popup-buttons .wc-ecbn-button {
    flex: 1;
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .wc-ecbn-popup {
        border-radius: 16px 16px 0 0;
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        align-self: flex-end;
    }

    .wc-ecbn-buttons {
        flex-direction: column;
    }

    .wc-ecbn-button {
        width: 100%;
    }
}
