/* Check Availability CTA Styles */
.ca-wrapper {
    position: relative;
    max-width: 520px;
    overflow: hidden;
}

.ca-wrapper .ca-btn {
    position: relative;
    width: 100%;
    min-height: 40px;
    transition: all 0.3s ease-in-out !important;
    z-index: 3;
    /* Theme-specific color - to be replaced with a theme defined variable once all brands agree on styling conventions */
    color: #fff !important;
}

.ca-wrapper .ca-btn.off {
    transform: translateX(100%);
}

.ca-wrapper .zip-checker__results {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    text-align: center;
    visibility: hidden;
}

.ca-wrapper .zip-checker__results.on {
    display: block;
    opacity: 1;
    visibility: visible;
}

.ca-wrapper .zip-checker__results .ca-unavailable-btn {
    width: calc(100% - 40px) !important;
    text-transform: unset;
}

.ca-wrapper .zip-checker__results .ca-pencil {
    width: 40px;
    /* Theme-specific color - to be replaced with a theme defined variable once all brands agree on styling conventions */
    background-color: #5050b9;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: unset;
}

.ca-wrapper .zip-checker__results .results-not-found {
    display: flex;
    flex-direction: column;
}

.ca-wrapper .zip-checker__results .results-not-found img {
    width: 20px;
}

.ca-wrapper .form-error {
    margin-top: 10px;
}

.zip-checker.ca-form {
    display: flex;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
}

.zip-checker.ca-form * {
    box-sizing: border-box;
}

.zip-checker.ca-form input[name='zipcode'] {
    height: 100%;
    width: 100%;
    border-radius: 0;
    margin: 0;
}

.zip-checker.ca-form .button {
    height: 100%;
}

.zip-checker.ca-form .button svg {
    height: 24px;
    width: 24px;
}

.zip-checker.ca-form .zip-checker__fields,
.zip-checker.ca-form .zip-checker__input__secondary {
    width: 100%;
    height: 40px;
}

/* Table-specific styles */
.vc_tta-container .vc-table-scrolling__cell button.ca-btn--availability {
    width: 100%;
    min-height: unset;
    box-sizing: border-box;
}

.vc_tta-container .vc-table-scrolling__cell .zip-checker__results.on a.button {
    box-sizing: border-box;
}

/* Product card specific styles */
.vc_tta-container .product-card button.ca-btn--availability {
    min-height: unset;
}

/* Media query for medium screens - adjust breakpoint as needed */
@media screen and (min-width: 768px) {
    .vc_tta-container .product-card button.ca-btn--availability {
        width: auto;
    }
}
