/*
Theme Name: Solar Enverde
Theme URI: https://onlinemedia.rs/
Description: Solar Enverde je Wordpress Template kreiran od strane Online Media tima za potrebe klijenta Solar Enverde DOO koji se bavi projektovanjem, izgradnjom i održavanjem solarnih elektrana.
Author: Online media
Author URI: https://onlinemedia.rs/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.woocommerce a.button.loading::after{
    position: relative !important;
	inset: unset !important;
	margin-left: 10px !important;
}

/* Woocommerce notices */
.woocommerce-notices-wrapper{
	display: flex;
	justify-content: center;
	align-items: center;
	background: #EFF0F6;
}
.woocommerce-notices-wrapper:not(:empty){
	margin-bottom: 10px;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message{
	max-width: 1720px;
	width: 100%;
	padding: 12px;
	font-family: "Noto Sans", "Sans-Serif";
	font-size: 16px;
	line-height: 1.5;
	background: transparent;
	margin:0;
	display: flex;
	justify-content: start;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	outline: none !important;
}

.woocommerce-error:before,
.woocommerce-info:before,
.woocommerce-message:before{
	position: relative;
	display: inline-block;
	inset: unset !important;
}
.woocommerce-error:focus-visible,
.woocommerce-info:focus-visible,
.woocommerce-message:focus-visible{
	outline: none !important;
}

.woocommerce-error a,
.woocommerce-info a,
.woocommerce-message a{
	background: #081B36 !important;
	color: white !important;
	border-radius: 8px;
	font-family: "Noto Sans";
	text-align: center;
	font-size: 16px;
	line-height: 18px;
	padding: 12px 24px !important;
	margin-left: auto !important;
}
@media(max-width:576px){
	.woocommerce-error a,
	.woocommerce-info a,
	.woocommerce-message a{
		display: block !important;
		margin-top: 7px !important;
		float: none !important;
	}
	.woocommerce-error,
	.woocommerce-info,
	.woocommerce-message{
		padding: 12px 0;
	}
}
.woocommerce-error a:hover,
.woocommerce-info a:hover,
.woocommerce-message a:hover{
	background: #081B36 !important;
	color: white;
}

.woocommerce-message{
	border-top-color: #38F59B !important;
}
.woocommerce-message:before{
	color: #38F59B !important;
}

.woocommerce-error{
	border-top-color: #DF072C!important;
}
.woocommerce-error:before{
	color: #DF072C!important;
}
.woocommerce-info{
	border-top-color: #F1AF00 !important;
}
.woocommerce-info:before{
	color: #F1AF00 !important;
}

/* ===== Solar bundle X dugme — overrides plugin default ===== */
.solar-bundle-header__remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(223, 7, 44, 0.2);
    color: #DF072C !important;
    text-decoration: none !important;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.solar-bundle-header__remove:hover {
    background: #DF072C;
    border-color: #DF072C;
    color: #fff !important;
    transform: scale(1.06);
}

/* ===== Checkout: entity toggle Fizičko / Pravno ===== */
.secb-entity {
    margin: 0 0 1.4rem 0;
    padding: 0;
    border: none;
}

.secb-entity__legend {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    font-weight: 600;
}

.secb-entity__choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.secb-entity__option {
    display: block;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #c0c2d0;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    color: #081B36;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.secb-entity__option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.secb-entity__option:hover {
    border-color: #38F59B;
}

.secb-entity__option.is-active {
    background: #38F59B;
    border-color: #38F59B;
    color: #081B36;
    font-weight: 700;
    box-shadow: 0 4px 14px -6px rgba(56, 245, 155, 0.55);
}

.secb-legal-field {
    transition: opacity 0.18s ease;
}

/* Sakrij "(opcionalno)" oznaku — pravno lice dobija zvezdicu kroz JS, fizičko lice ova polja ne vidi */
.secb-legal-field label .optional,
#billing_company_field label .optional,
#billing_pib_field label .optional,
#billing_company_email_field label .optional,
#billing_company_address_field label .optional {
    display: none;
}

/* JS-kontrolisana klasa za sakrivanje legal polja (default = fizicko) */
.secb-hidden {
    display: none !important;
}

/* Naslov bloka „Podaci firme" — pojavljuje se kad je Pravno lice */
.secb-legal-heading {
    margin: 1.6rem 0 0.8rem 0;
    padding: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: #081B36;
    border-bottom: 1px solid rgba(8, 27, 54, 0.12);
    font-weight: 700;
    /* Mora da zauzme celu širinu kako ne bi „ulazio" u susednu form-row-first/last kolonu */
    width: 100%;
    flex-basis: 100%;
    grid-column: 1 / -1;
    clear: both;
    display: block;
}

/* Crvena zvezdica na obaveznim legal poljima (kroz JS) */
.secb-legal-active .required {
    color: #DF072C;
    text-decoration: none;
    font-weight: 700;
    margin-left: 2px;
}

@media (max-width: 600px) {
    .secb-entity__choices {
        grid-template-columns: 1fr;
    }
}
