@charset "utf-8";
/* CSS Document */

/* ==================== BRAND CARDS & BELOW-THE-FOLD STYLES ==================== */

/* Float / Card Layout */
.brand-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    margin: 25px 0;
}
.brand {
    background: white;
    border: 2px solid #9F9FFF;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
}

/* Brand Card Internal Layout */
.brand-top {
    overflow: hidden;
    display: flow-root;
    padding: 10px;
}
.brand-summary {
    float: left;
    width: 235px;
    text-align: center;
    margin-right: 15px;
    border-right: 1px solid #eee;
}
.brand-content {
    margin-left: 261px;
    padding: 28px 26px 10px 0;
}

/* Force full width inside content area */
.brand-content > * {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.brand-content .retailers {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.brand-content .retailers span {
    flex: 1 1 160px;
}

/* Full width elements below float */
details,
.brand-link {
    width: 100%;
    padding: 0 26px 24px;
    box-sizing: border-box;
    clear: both;
}
details {
    margin: 15px 0 20px 0;
    border-top: 1px solid #eee;
    padding-top: 22px;
}
.brand-link {
    padding: 20px 26px;
    background: #f8f9ff;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Logo & Headings inside cards */
.brand img.logo {
    width: 100%;
    max-width: 195px;
    height: 118px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 8px;
}
.brand h2 {
    margin: 12px 0 8px;
    font-size: 1.4rem;
    color: #0033aa;
}

/* ==================== STARS ==================== */
.stars {
    display: inline-flex;
    gap: 3px;
    font-size: 1.8rem;
    color: #e5e7eb;
}
.star {
    transition: color 0.2s;
}
.stars[data-rating="5"] .star { color: #ffd700; }
.stars[data-rating="4"] .star:nth-child(-n+4) { color: #ffd700; }
.stars[data-rating="3"] .star:nth-child(-n+3) { color: #ffd700; }

/* ==================== DETAILS / ACCORDION ==================== */
details summary {
    display: block;
    text-align: center;
    cursor: pointer;
}
details summary h3 {
    margin: 0.25em 0 0.1em 0;
    font-size: 1.1em;
}
details summary span {
    display: block;
    font-size: 0.75em;
    color: #666;
    margin-top: 0.2em;
    font-style: italic;
}

/* ==================== RESPONSIVE - BRAND CARDS ==================== */
@media (max-width: 767px) {
    .brand-summary {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .brand-content {
        margin-left: 0;
    }
    .retailers span {
        min-width: 120px;
    }
}

@media (max-width: 860px) {
    .brand-wrapper { 
        grid-template-columns: repeat(2, 1fr); 
    }
}
@media (max-width: 620px) {
    .brand-wrapper { 
        grid-template-columns: 1fr; 
    }
    section {
        padding: 15px 15px;
    }
    .brand.expanded {
        transform: scale(1.01) translateY(-8px);
    }
}

/* Optional: Remaining table polish (non-critical) */
.manufacturer-table th,
.manufacturer-table td {
    transition: all 0.3s;
}


/* Retailer links */
.retailers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    clear: both;
}

.link {
    background-color: #f8bd19;
    color: #fff;
    border-radius: 9999px;
    padding: 12px 24px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 110px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.link:hover {
    background-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Walmart special styling */
.wrt.link, .wrt.link a, a.wl {
    background-color: #0071CE !important;
    color: #ffffff !important;
    border: 2px solid #0071CE;
}
.wrt.link:hover, .wrt.link a:hover, a.wl:hover {
    background-color: #004B9F !important;
    color: #ffffff !important;
}

/* Advance Auto Parts - Official brand red */
.adv.link,
.adv.link a {
    background-color: #B6121B !important;   /* Primary Advance Auto red */
    color: #ffffff !important;
    border: 2px solid #B6121B;
}

.adv.link:hover,
.adv.link a:hover {
    background-color: #8F0D14 !important;   /* Darker red for hover */
    color: #ffffff !important;
    border-color: #8F0D14;
}

/* Target special styling - Official Red */
.trg.link,
.trg.link a,
a.tg {
    background-color: #CC0000 !important;     /* Target's signature red */
    color: #ffffff !important;
    border: 2px solid #CC0000;
}

.trg.link:hover,
.trg.link a:hover,
a.tg:hover {
    background-color: #B20000 !important;     /* Darker Target red for hover */
    color: #ffffff !important;
    border-color: #B20000;
}

/* Misc */
section > b {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.disclosure {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
}

/* Container for the form */
.comments {
    max-width: 500px; /* Optional: sets a nice width for the form */
    margin: 20px auto;
}

#contactForm {
    display: flex;
    flex-direction: column; /* Stacks elements vertically */
    gap: 15px;              /* Adds spacing between elements */
}

/* Styling for inputs and textarea */
#contactForm input[type="text"],
#contactForm textarea {
    width: 100%;            /* Makes them fill the container width */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    font-family: inherit;
}

/* Responsive Textarea */
#contactForm textarea {
    min-height: 120px;      /* Starting height */
    resize: vertical;       /* Allows user to resize height only */
}

/* Extra height for select to make it feel balanced */
#contactForm select {
    height: 48px;                 /* Matches typical input height */
    cursor: pointer;
}

/* Button styling */
#contactForm button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-start; /* Keeps button from stretching full width */
}

#contactForm button:hover {
    background-color: #0056b3;
}

/* Response message spacing */
#responseMessage {
    margin-top: 15px;
    font-weight: bold;
}

/* Extra small mobile tweaks */
@media only screen and (max-width: 500px) {
    section { width: 93.5%; }
}

.pipe-bullets {
    white-space: pre-wrap;
    padding-left: 24px;
    position: relative;
}

.pipe-bullets::before {
    content: "";
}

.pipe-bullets {
    display: block;
    line-height: 1.6;
}

.pipe-bullets span {
    display: block;
    margin-bottom: 6px;
    position: relative;
    padding-left: 20px;
}

.pipe-bullets span::before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 1.3em;
    line-height: 1;
}
