/*
 Theme Name:   EV
 Template:     astra
 Version:      1.0
*/


.woocommerce-cart .dc-cart-wrapper {
    display: flex !important;
    gap: 2rem;
    align-items: flex-start;
}

.dc-cart-left {
    position: relative;
    width: 320px;
    min-width: 20px;
    transition: width .3s ease;
    border-right: 1px solid #ddd;
    background: #fff;
    overflow: hidden;
}

/* COLLAPSED STATE */
.dc-cart-left:not(.is-open) {
    width: 28px;
    min-width: 28px;
}

/* INNER CONTENT SLIDE */
.dc-cart-left-inner {
    width: 320px;
    height: 100%;
}

/* TOGGLE STRIPE */
.dc-cart-collapse-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 100%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: right;
	padding-right: 4px;
	max-height: 250px;
}

.dc-cart-left.is-open .dc-cart-collapse-toggle {
	max-height: 250px;
}

/* ICON VISIBILITY */
.dc-cart-left.is-open .icon-open {
    display: block;
	max-height: 250px;
	padding-right: 14px;
}
.dc-cart-left.is-open .icon-closed {
    display: none;
	
}

.dc-cart-left:not(.is-open) .icon-open {
    display: none;
	
}
.dc-cart-left:not(.is-open) .icon-closed {
    display: block;	
	padding: 10px 20px;
	font-size: 80%  !important;	
    border-style: solid;
    border-top-width: 0;
    border-right-width: 0;
    border-left-width: 0;
    border-bottom-width: 0;
    color: #ffffff;
    border-radius: 5px;
    padding-top: 13px;
    padding-right: 4px !important;
    padding-bottom: 13px;
    padding-left: 40px;
    font-family: inherit;
    font-weight: 500;
    font-size: 15px;
    font-size: 1rem;
    line-height: 1;
    text-transform: uppercase;	
	writing-mode: vertical-rl;
}

.dc-cart-left-content{
	display: flex;
	flex-direction: column;
	width: 80%;
}

.dc-cart-left:not(.is-open) .dc-sizes {
    width: 0%;
    display: none;
}


.dc-cart-title {
    font-size: 1rem;	
}

.history-frame {
    display: flex;
	flex-wrap: wrap;
    gap: 5px;
    overflow-y: auto;
    //padding-bottom: 8px;
	max-height: 250px;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.design-card {
    flex: 0 0 auto;
    width: 80px;
    scroll-snap-align: start;
}

.design-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}


/* OPTIONAL: hover affordance 
.dc-cart-collapse-toggle:hover {
    background: #eaeaea;
}
*/

/* RIGHT CART */
.woocommerce-cart .dc-cart-right {
    flex: 1;
    min-width: 0;
}


.dc-size-table {
    border-collapse: collapse;
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.dc-size-table th, .dc-size-table td {
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.dc-size-table th {
    background-color: #f7f7f7;
    font-weight: 600;
}

.dc-summary-label {
    background-color: #f7f7f7;
    font-weight: 600;
}

.dc-qty-ticker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-qty-ticker button {
    width: 22px;                /* smaller buttons */
    height: 22px;
    background-color: #ff4d4d;  /* red buttons */
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    line-height: 20px;
    font-size: 14px;
    padding: 0;
    transition: background 0.2s;
}

.dc-qty-ticker button:hover {
    background-color: #e64545;
}

.dc-qty-ticker .dc-qty-input {
    width: 36px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0 4px;
    font-size: 14px;
    padding: 2px;
    background-color: #fff;
    pointer-events: none; /* readonly, only modified via buttons */
}

.dc-size-label {
    font-weight: 500;
    font-size: 14px;
}

.dc-modal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.dc-modal-content {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dc-modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.dc-modal-buttons button {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

#dc-cancel-btn {
    background-color: #ccc;
    color: #333;
}

#dc-confirm-btn {
    background-color: #ff4d4d;
    color: #fff;
}

#dc-confirm-btn:hover {
    background-color: #e64545;
}

#dc-cancel-btn:hover {
    background-color: #bbb;
}

input.dc-qty-input {
    width: 30px;
    height: 20px;
}

button.dc-qty-plus {
    width: 20px;
    padding: 2px;
}

button.dc-qty-minus {
    width: 20px;
    padding: 2px;
}

#dc-add-to-cart.disabled,
#dc-add-to-cart:disabled {
opacity: 0.5;
cursor: not-allowed;
}

button#dc-add-to-cart {
    width: 100%;
    margin-top: 5px;
}

button#uploadNameNumberBtn {
    background-color: lightslategray;
}

/* Prevent Woo/theme stacking rules
.woocommerce-cart .dc-cart-wrapper > * {
    float: none !important;
    clear: none !important;
    width: auto !important;
}
 */

/* Mobile fallback 
@media (max-width: 900px) {
    .woocommerce-cart .dc-cart-wrapper {
        flex-direction: column !important;
    }

    .woocommerce-cart .dc-cart-left {
        width: 100%;
    }
}
*/