/* Dflex Woo Theme - Product Options (Add-ons) Styles */

.dflex-adv-options-container {
    width: 100%;
}

.dflex-option-group {}

.dflex-option-label {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #000;
    display: block;
}

/* Card Grid Layout */
.dflex-option-group-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.dflex-option-card {
    display: block;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.dflex-option-input {
    display: none;
}

.dflex-option-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* The Image Box */
.dflex-option-image {
    aspect-ratio: 1;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    margin-bottom: 0;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0px 12px 24px 0px #00000014;

}

.dflex-option-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

/* Text Content */
.dflex-option-name {
    font-size: 11px;
    font-weight: 300;
    color: #000;
    margin-top: 4px;
    margin-bottom: 4px;
    line-height: 1.25;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Price Pill */
.dflex-option-price-tag {
    width: 100%;
    font-size: 12px;
    font-weight: 500;
    color: #000;
    /* Dark navy from screenshot */
    padding: 6px 16px;
    border: 1.5px solid #1a2c4e;
    border-radius: 25px;
    transition: all 0.2s ease;
    min-width: 80px;
}

/* Checked Logic */
.dflex-option-input:checked+.dflex-option-card-inner .dflex-option-image {
    border-color: var(--dflex-color-primary, #E53935);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.dflex-option-input:checked+.dflex-option-card-inner .dflex-option-price-tag {
    background: #1a2c4e;
    color: #fff;
}

/* Hover States */
.dflex-option-card:not(.checked):hover .dflex-option-image {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Fix for Cart Variation Display - remove empty labels (the colon ':') */
dl.variation dt.variation- {
    display: none !important;
}

dl.variation dd.variation- {
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    margin: 0;
}

dl.variation dd.variation- p {
    margin: 0 !important;
}