/**
 * Public-facing CSS for MyFrame Shortcode Plugin
 */

 .myframe-shortcode {
    margin: 20px 0;
    padding: 5px;
}

.myframe-shortcode.boxed {
    background-color: #fcfcfc;
    border-radius: 5px;
    border: 1px solid #eee;
    padding: 15px;
    overflow: hidden;
}

.myframe-shortcode.highlighted {
    background-color: #fffde7;
    border-left: 4px solid #ffd600;
}

.myframe-shortcode.bordered {
    border: 1px solid #ddd;
    border-radius: 3px;
}

.myframe-shortcode img {
    max-width: 100%;
    height: auto;
}

.myframe-shortcode h1,
.myframe-shortcode h2,
.myframe-shortcode h3,
.myframe-shortcode h4,
.myframe-shortcode h5,
.myframe-shortcode h6 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Delivery row container - each row should be wrapped in this */
.myframe-shortcode .delivery-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    min-height: 35px;
}

.myframe-shortcode .delivery-row:last-child {
    margin-bottom: 0;
}

/* Three equal columns */
.myframe-shortcode .delivery-row .delivery-icon {
    flex: 0 0 auto;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.myframe-shortcode .delivery-row .delivery-text {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #575757;
    line-height: 1.5;
}

.myframe-shortcode .delivery-row .delivery-price {
    flex: 0 0 auto;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
}

/* Legacy support - if rows aren't wrapped, try to group img + p + em */
.myframe-shortcode p {
    margin: 0;
    display: inline;
    font-size: 13px;
    color: #575757;
    line-height: 1.5;
}

.myframe-shortcode ul,
.myframe-shortcode ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.myframe-shortcode a {
    color: #0073aa;
    text-decoration: underline;
}

.myframe-shortcode a:hover {
    color: #00a0d2;
}

.myframe-shortcode blockquote {
    border-left: 4px solid #ddd;
    padding-left: 15px;
    margin-left: 0;
    font-style: italic;
}

/* Image styles for delivery rows */
.myframe-shortcode .delivery-row .delivery-icon img,
.myframe-shortcode .delivery-row img.alignleft {
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0;
    display: block;
}

/* Price styles */
.myframe-shortcode .delivery-row .delivery-price em strong,
.myframe-shortcode .delivery-row em strong {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* Legacy support for old structure */
.myframe-shortcode img.alignleft {
    max-height: 35px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0;
    display: block;
}

.myframe-shortcode em strong {
    font-weight: 600;
    color: #333;
} 