/**
 * Vertex Woo Notices & Backorder - Stylesheet
 *
 * @package Vertex_Notices
 */

/* ==========================================================================
   1. Global Announcement Banner
   ========================================================================== */
.vtx-global-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: #f3f8ee;
    border: 1px solid #d0e3c2;
    border-left: 5px solid #6c9132;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 15px 0 25px 0;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.vtx-banner-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.vtx-banner-content {
    font-size: 15px;
    line-height: 1.55;
    color: inherit;
    font-weight: 500;
}

.vtx-banner-content p {
    margin: 0 0 6px 0;
}

.vtx-banner-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .vtx-global-banner {
        padding: 12px 14px;
        gap: 10px;
        margin-bottom: 20px;
    }
    .vtx-banner-content {
        font-size: 14px;
    }
}

/* ==========================================================================
   2. Cart & Checkout Boxes
   ========================================================================== */
.vtx-checkout-notice-wrap {
    width: 100%;
    margin: 15px 0;
    display: block;
}

.vtx-checkout-box {
    border-radius: 8px;
    border: 1px solid #e2e4e7;
    border-left: 5px solid #333;
    padding: 15px 18px;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.vtx-checkout-standard {
    background-color: #94FFB9;
    border-left-color: #28a745;
    border-color: #a3e9ba;
    color: #155724;
}

.vtx-checkout-backorder {
    background-color: #ffff80;
    border-left-color: #e0a800;
    border-color: #eed64c;
    color: #333333;
}

.vtx-checkout-box-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: inherit;
}

.vtx-checkout-box-content p {
    margin: 0 0 6px 0;
    font-size: 14px;
    line-height: 1.5;
    color: inherit;
}

.vtx-checkout-box-content p:last-child {
    margin-bottom: 0;
}

/* Cart Page Notice */
.vtx-cart-reservation-notice {
    background-color: #ffff80;
    border: 1px solid #eed64c;
    border-left: 5px solid #e0a800;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 20px 0;
    color: #333333;
}

.vtx-cart-reservation-notice p {
    margin: 0 0 6px 0;
    font-size: 14.5px;
    line-height: 1.5;
}

.vtx-cart-reservation-notice p:last-child {
    margin-bottom: 0;
}

/* Cart Item Reservation Badge */
.custom-reservation-text {
    display: inline-block;
    background: greenyellow;
    color: #1a2612;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   3. Catalog / Loop Badges
   ========================================================================== */
.custom-availability-backorder,
.custom-availability-available,
.custom-availability-sale,
.custom-availability-sold-out {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.custom-availability-backorder {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.custom-availability-available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.custom-availability-sale {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    font-weight: 700;
}

.custom-availability-sold-out {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* ==========================================================================
   4. Single Product Page
   ========================================================================== */
.custom-availability-single {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    background-color: #f3f8ee !important;
    border: 1px solid #d0e3c2 !important;
    border-left: 5px solid #6c9132 !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    margin: 15px 0 !important;
    color: #2c3b20 !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03) !important;
}

.custom-availability-single .rn-avail-icon {
    flex-shrink: 0 !important;
    width: 22px !important;
    height: 22px !important;
    margin-top: 2px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%236c9132' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E") !important;
}

.custom-availability-single .rn-avail-text {
    color: #2c3b20 !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
}

/* Informacije o dostavi na pojedinačnoj strani proizvoda */
.rn-single-shipping-info {
    margin: 25px auto !important;
    text-align: center !important;
    max-width: 820px !important;
    background: #f9fbf8;
    border: 1px solid #e1ecdb;
    border-radius: 8px;
    padding: 18px 22px;
}

.rn-single-shipping-info .rn-shipping-info-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #2c3b20 !important;
    margin: 0 0 10px 0 !important;
    text-align: center !important;
    letter-spacing: 0.2px !important;
}

.rn-single-shipping-info .rn-shipping-info-text {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: #444444 !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* ==========================================================================
   5. Admin Settings Styling
   ========================================================================== */
.vtx-admin-wrap {
    max-width: 1080px;
    margin-top: 20px;
}

.vtx-admin-title {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.vtx-tab-content {
    display: none;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-top: none;
    padding: 24px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.vtx-tab-content.active {
    display: block;
}

.vtx-card h2 {
    margin-top: 0;
    font-size: 19px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
