.custom-add-to-cart-widget {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.quantity-section {
    margin-bottom: 15px;
}

.quantity-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}


button[type="button"].qty-btn {
    width: 35px;
    height: 35px;
    /* border: 1px solid rgba(0, 0, 0, 0.7); */
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--black);
    transition: all 0.2s ease;
}

button[type="button"].qty-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

button[type="button"].qty-btn.minus {
    border-radius: 4px 0 0 4px;
    background-color: transparent;
}

button[type="button"].qty-btn.plus {
    border-radius: 0 4px 4px 0;
    background-color: transparent;
}

.qty-input {
    width: 60px;
    height: 35px;
    text-align: center;
    /* border: 1px solid #ddd; */
    border: none !important;
    border-left: 1px solid rgba(0, 0, 0, 0.3) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.3) !important;
    border-radius: 0 !important;
    background: transparent;
    font-size: 14px;
    -moz-appearance: textfield;
}

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

.stock-status-section {
    margin-bottom: 20px;
}

.stock-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 9px;
}
.stock-dot::after {
    content: '';
    position: absolute;
    display: block;
    width: 70%;
    height: 70%;
    top: 50%;
    left: 50%;
    border-radius: 50px;
    transform: translate(-50%, -50%);
    
    /* box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.5); */
}

.stock.stock-dot::after {
    background-color: #4CAF50;
}
.stock.out-stock-dot::after {
    background-color: #f44336;
}

.stock-text {
    font-size: 15px;
    color: var(--black);
    font-weight: 500;
}

.custom-cart-form {
    margin-bottom: 15px;
}

button[type="button"].custom-add-to-cart-btn {
    width: 100%;
    padding: 12px 24px;
    background: var(--project-green-dark);
    color: var(--white);
    border: 1px solid var(--black);
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    border-radius: 50px;
}

button[type="button"].custom-add-to-cart-btn:hover {
    /* background: linear-gradient(135deg, var(--project-green-dark) 0%, var(--project-green-light) 100%); */
    background: var(--project-light);
    color: var(--project-green-dark);
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); */
    /* transform: translateY(-1px); */
}

button[type="button"].custom-add-to-cart-btn.disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cart-messages .woocommerce-message {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.cart-messages .woocommerce-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Flash message styles */
.flash-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #4caf50;
    color: white;
    padding: 14px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.flash-toast.visible {
    opacity: 1;
    transform: translateY(0);
}


/* */

.custom-add-to-cart-widget {
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.custom-add-to-cart-btn[disabled] {
  pointer-events: none;
  opacity: .6; /* len vizuál, môžeš vynechať */
}