:root {
    --wc-ic-color-bg: #ffffff;
    --wc-ic-color-border: #e5e7eb;
    --wc-ic-color-text: #111827;
    --wc-ic-color-muted: #6b7280;
    --wc-ic-color-primary: #111827;
    --wc-ic-color-primary-text: #ffffff;
    --wc-ic-radius: 10px;
}

.wc-ic {
    margin: 16px 0;
}

.wc-ic__trigger {
    background: var(--wc-ic-color-primary);
    color: var(--wc-ic-color-primary-text);
    border: 0;
    border-radius: var(--wc-ic-radius);
    padding: 12px 16px;
    cursor: pointer;
    width: 100%;
}

.wc-ic__trigger:focus {
    outline: 3px solid rgba(59, 130, 246, 0.6);
    outline-offset: 2px;
}

.wc-ic-form {
    background: var(--wc-ic-color-bg);
    border: 1px solid var(--wc-ic-color-border);
    border-radius: var(--wc-ic-radius);
    padding: 16px;
}

.wc-ic-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.wc-ic-form__title {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--wc-ic-color-text);
}

.wc-ic-field {
    margin-bottom: 12px;
}

.wc-ic-field__label {
    display: block;
    margin: 0 0 6px;
    font-weight: 600;
    color: var(--wc-ic-color-muted);
}

.wc-ic-field__input {
    width: 100%;
    border: 1px solid var(--wc-ic-color-border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--wc-ic-color-text);
}

.wc-ic-field__input--error {
    border-color: #ef4444;
}

.wc-ic-field--checkbox .wc-ic-field__label {
    display: flex;
    gap: 8px;
    align-items: center;
}

@media (max-width: 768px) {
    .wc-ic-field--hide-mobile {
        display: none;
    }
}

.wc-ic-summary {
    border: 1px solid var(--wc-ic-color-border);
    border-radius: var(--wc-ic-radius);
    padding: 12px;
}

.wc-ic-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: var(--wc-ic-color-text);
}

.wc-ic-summary__row--total {
    border-top: 1px solid var(--wc-ic-color-border);
    margin-top: 8px;
    padding-top: 10px;
    font-weight: 600;
}

.wc-ic__submit {
    width: 100%;
    margin-top: 12px;
    background: var(--wc-ic-color-primary);
    color: var(--wc-ic-color-primary-text);
    border: 0;
    border-radius: var(--wc-ic-radius);
    padding: 12px 16px;
    cursor: pointer;
}

.wc-ic-form__notices {
    margin-bottom: 12px;
    color: #b91c1c;
}

.wc-ic-product {
    border: 1px solid var(--wc-ic-color-border);
    border-radius: var(--wc-ic-radius);
    padding: 12px;
    margin-bottom: 16px;
}

.wc-ic-product__meta {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.wc-ic-product__image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    background: #f3f4f6;
}

.wc-ic-product__price {
    font-weight: 700;
    color: var(--wc-ic-color-text);
}

.wc-ic-product__stock {
    font-size: 13px;
    color: var(--wc-ic-color-muted);
}

.wc-ic-variant-selector {
    margin-top: 12px;
}

.wc-ic-coupon {
    border: 1px solid var(--wc-ic-color-border);
    border-radius: var(--wc-ic-radius);
    padding: 12px;
    margin-bottom: 12px;
}

.wc-ic-coupon__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.wc-ic-coupon__apply {
    background: var(--wc-ic-color-primary);
    color: var(--wc-ic-color-primary-text);
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
}

.wc-ic-coupon__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--wc-ic-color-muted);
}

body.woocommerce .wc-ic,
body.single-product .wc-ic {
    display: block;
    visibility: visible;
    opacity: 1;
}

body.woocommerce .wc-ic__trigger,
body.single-product .wc-ic__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}
