

.romatex-add-to-cart-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.romatex-add-to-cart-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.romatex-add-to-cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.romatex-add-to-cart-row--swatches {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.romatex-variation-attribute-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.romatex-variation-attribute-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.romatex-variation-attribute-label {
    margin: 0;
}

.romatex-swatches-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.romatex-swatch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #D1DCE8 !important;
    background-color: #ffffff !important;
    color: #191851 !important;
    border-radius: 12px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.romatex-swatch-btn:hover {
    border-color: #F99C1B !important;
    color: #F99C1B !important;
}

.romatex-swatch-btn.is-active {
    background-color: #191851 !important;
    color: #ffffff !important;
    border-color: #191851 !important;
    box-shadow: 0 4px 12px rgba(25, 24, 81, 0.2) !important;
}

.romatex-quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.romatex-quantity-label {
    font-size: 15px;
    font-weight: 700;
    color: #191851;
    margin: 0;
    font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
}

.romatex-quantity-box {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 130px;
    height: 44px;
    background: #ffffff;
    border-radius: 14px;
    border: 1.5px solid #D1DCE8 !important;
    box-sizing: border-box;
    overflow: hidden;
}

.romatex-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #191851 !important;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.romatex-qty-btn:hover {
    background-color: rgba(249, 156, 27, 0.15) !important;
    color: #F99C1B !important;
}

.romatex-qty-input {
    width: 48px !important;
    height: 20px !important;
    opacity: 1 !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #191851 !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    appearance: textfield !important;
    -webkit-appearance: textfield !important;
    -moz-appearance: textfield !important;
    font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
}

.romatex-qty-input::-webkit-outer-spin-button,
.romatex-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.romatex-action-buttons-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.romatex-action-buttons-row--stacked {
    flex-direction: column;
}

.romatex-btn-add-to-cart,
.romatex-btn-buy-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    border: none;
    border-radius: 30px !important;
    min-height: 48px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif !important;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.romatex-btn-add-to-cart {
    background-color: #191851 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(25, 24, 81, 0.2) !important;
}

.romatex-btn-add-to-cart:hover {
    background-color: #F99C1B !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(249, 156, 27, 0.3) !important;
}

.romatex-btn-buy-now {
    background-color: #F99C1B !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(249, 156, 27, 0.25) !important;
}

.romatex-btn-buy-now:hover {
    background-color: #191851 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(25, 24, 81, 0.3) !important;
}

.romatex-btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: romatex-spin 0.8s linear infinite;
    margin-inline-start: 8px;
}

.romatex-btn-add-to-cart.is-loading .romatex-btn-spinner,
.romatex-btn-buy-now.is-loading .romatex-btn-spinner {
    display: inline-block;
}

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

@media (max-width: 767px) {
    .romatex-action-buttons-row {
        flex-direction: column;
    }
}


