/* Minimal custom modal styling */

.ea-hidden { display: none !important; }

.ea-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ea-modal {
	background: #fff;
	width: 100%;
	max-width: 420px;
	border-radius: var(--br);
	box-shadow: 0 10px 40px rgba(0,0,0,.25);
	overflow: hidden;
}

.ea-header {
	padding: 16px 18px;
	border-bottom: 1px solid #eee;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ea-title { font-size: 18px; font-weight: 600; margin: 0; }

.ea-close {
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

.ea-body { padding: 16px 18px; }

.ea-field { margin-bottom: 12px; }
.ea-label { display: block; font-size: 13px; margin-bottom: 6px; color: #444; }
.ea-input {
	color: var(--input-color, var(--text));
    display: block;
    box-sizing: border-box;
    width: 100%;
    flex: 1;
    height: 5rem;
    background-color: var(--input-bg, var(--bg-gray));
    border: 1px solid var(--input-border, transparent);
    border-radius: var(--br);
    outline: 0;
    transition-property: color, border;
    transition-duration: .3s;
    box-shadow: none;
    padding: 10px 12px;
}
.ea-input:focus { border-color: #bbb; }

.ea-actions { display: flex; gap: 10px; margin-top: 12px; flex-direction: column;}
.ea-btn.secondary {
	outline: none;
    background: none;
    border: none;
    border-bottom: 1px dashed var(--primary);
    color: var(--link-color, var(--primary));
    width: max-content;
    margin: 0 auto;
}

.ea-error {
	margin-top: 10px;
	color: #b00020;
	font-size: 13px;
}

.ea-note {
	margin-top: 10px;
	color: #666;
	font-size: 13px;
}

.ea-loader {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255,255,255,.5);
	border-top-color: rgba(255,255,255,1);
	border-radius: 50%;
	animation: ea-spin 0.8s linear infinite;
	vertical-align: middle;
	margin-right: 8px;
}

@keyframes ea-spin {
	to { transform: rotate(360deg); }
}


/* qty (detail + popup) */
.office-qty{
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f2f2f2;
    border-radius: 4px;
    padding: 0 10px;
}

.office-qty__btn{
    height:48px;
    border:none;
    background:transparent;
    line-height:1;
    cursor:pointer;
}

.office-qty__btn:disabled{
    opacity:.35;
    cursor:not-allowed;
}

.office-qty__input{
    width:70px;
    text-align:center;
    border:none;
    background:transparent;
    outline:none;
    font-weight: 500;
    font-size: 13px;
    color: #AEAEAE;
}

/* popup */
/* .office-add2basket-popup .popup-window-content{
    padding:22px 22px 26px;
}

.office-popup{
    text-align:center;
    min-width:320px;
    max-width:420px;
}

.office-popup__title{
    font-size:18px;
    font-weight:600;
    margin-bottom:14px;
}

.office-popup__img{
    display:flex;
    justify-content:center;
    margin:10px 0 12px;
}

.office-popup__img img{
    max-width:220px;
    max-height:220px;
    width:auto;
    height:auto;
    object-fit:contain;
}

.office-popup__name{
    font-size:18px;
    font-weight:500;
    margin:8px 0 6px;
}

.office-qty--popup{
    margin:16px auto 18px;
    max-width:360px;
}

.office-popup__btn{
    display:block;
    width:100%;
    max-width:360px;
    margin:0 auto;
    padding:16px 18px;
    border:2px solid #ff8a00;
    border-radius:10px;
    text-align:center;
    text-decoration:none;
    color:#ff8a00;
    font-size:18px;
    font-weight:600;
}

.office-popup__btn:hover{
    text-decoration:none;
    opacity:.9;
} */



#custom-basket-popup { position: fixed; inset: 0; z-index: 99999; display: block; }
#custom-basket-popup .overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
#custom-basket-popup .window { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 280px; background: #fff; padding: 20px; z-index: 1; }
#custom-basket-popup .window .title {font-size: 14px; color: #7e7e7e; font-weight: bold;}
#custom-basket-popup .window p {text-align: center; font-weight: 600; font-size: 14px;}
#custom-basket-popup .window img {max-height: 200px; object-fit: contain; margin: 0 auto;}
#custom-basket-popup .close { position: absolute; right: 20px; top: 20px; background: none; border: 0; font-size: 20px; cursor: pointer; }
#custom-basket-popup .office-qty {margin: 20px auto; max-width: 175px;}
#custom-basket-popup .btn {margin: 0 auto; display: block; width: max-content; padding: 15px 20px;}