/* Common Card Wrapper Style */
.pod-card-wrapper {
    margin-bottom: 20px;
    clear: both;
}

/* 1. Upload Design Card */
.pod-media-upload-card {
    background: #ffffff;
    border: 1px dashed #c4c4c4;
    padding: 18px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.pod-media-upload-card:hover {
    border-color: #888;
}
.pod-media-upload-card label {
    display: block;
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}
.pod-media-upload-card label .required {
    color: #e2401c;
    font-weight: bold;
}
.pod-media-upload-card input[type="file"] {
    display: block;
    width: 100%;
    padding: 5px 0;
    cursor: pointer;
}
.pod-upload-note {
    font-size: 13px;
    color: #777;
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* 2. Notice Box Card */
.pod-notice-card {
    padding: 15px 20px;
    border-radius: 6px;
    line-height: 1.5;
    /* Background and color are set inline from settings */
}
.pod-notice-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}
.pod-notice-item:last-child {
    margin-bottom: 0;
}
.pod-notice-item .pod-icon {
    margin-right: 10px;
    font-size: 1.2em;
    opacity: 0.8;
}

/* 3. Text Customization Card */
.pod-text-customization-card {
    /* No background/border by default, just structured nicely */
}
.pod-text-customization-card .pod-text-label {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}
.pod-input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.pod-input-group input[type="text"] {
    width: 100%;
    padding: 12px 45px 12px 15px; /* right padding makes room for icon */
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    box-shadow: none;
}
.pod-input-group input[type="text"]:focus {
    border-color: #aaa;
    outline: none;
}

/* Tooltip & Info Icon styling */
.pod-tooltip-container {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
}
.pod-info-icon {
    background: #111;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: help;
    font-family: serif;
    font-style: italic;
}

/* CSS Tooltip Hover Effect */
.pod-tooltip-text {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 999;
    bottom: 140%; /* Position above the icon */
    right: 50%;
    transform: translateX(50%);
    width: 220px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
    font-family: sans-serif;
    font-style: normal;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.pod-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}
.pod-tooltip-container:hover .pod-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Product Floating Video styles */
.pod-floating-video-wrapper {
    --pod-video-side-gap: min(var(--pod-video-desktop-x, 30px), 20vw);
    --pod-video-bottom-gap: min(var(--pod-video-desktop-y, 30px), 25vh);
    --pod-video-bottom: min(calc(var(--pod-video-clearance, 0px) + var(--pod-video-bottom-gap)), calc(100vh - 100px));
    position: fixed;
    display: block;
    bottom: var(--pod-video-bottom);
    right: max(var(--pod-video-side-gap), env(safe-area-inset-right, 0px));
    left: auto;
    width: var(--pod-video-desktop-width, 200px);
    height: var(--pod-video-desktop-height, 350px);
    max-width: calc(100vw - var(--pod-video-side-gap) - var(--pod-video-side-gap));
    max-height: max(80px, calc(100vh - var(--pod-video-bottom) - 20px));
    background: #000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 99999;
    overflow: hidden;
    container-type: inline-size;
}
@supports (height: 100dvh) {
    .pod-floating-video-wrapper {
        --pod-video-bottom: min(calc(var(--pod-video-clearance, 0px) + var(--pod-video-bottom-gap)), calc(100dvh - 100px));
        max-height: max(80px, calc(100dvh - var(--pod-video-bottom) - 20px - env(safe-area-inset-top, 0px)));
    }
}
@media (min-width: 769px) {
    .pod-floating-video-wrapper[data-desktop-position="left"] {
        left: max(var(--pod-video-side-gap), env(safe-area-inset-left, 0px));
        right: auto;
    }
    .pod-floating-video-wrapper[data-desktop-enabled="0"] {
        display: none;
    }
}
.pod-floating-video-wrapper .pod-video-control {
    position: absolute;
    top: 6px;
    top: clamp(4px, 3cqw, 8px);
    width: 24px;
    height: 24px;
    width: clamp(22px, 12cqw, 30px);
    height: clamp(22px, 12cqw, 30px);
    min-width: 0;
    min-height: 0;
    max-width: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    appearance: none;
}
.pod-floating-video-wrapper .pod-video-close {
    right: 6px;
    right: clamp(4px, 3cqw, 8px);
}
.pod-floating-video-wrapper .pod-video-sound {
    left: 6px;
    left: clamp(4px, 3cqw, 8px);
}
.pod-floating-video-wrapper .pod-video-control:hover {
    background: rgba(0,0,0,0.8);
}
.pod-floating-video-wrapper .pod-video-play {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    width: clamp(30px, 24cqw, 42px);
    height: clamp(30px, 24cqw, 42px);
}
.pod-floating-video-wrapper .pod-video-play[hidden] {
    display: none;
}
.pod-floating-video-wrapper .pod-video-play path {
    fill: currentColor;
    stroke: none;
}
.pod-floating-video-wrapper .pod-video-control:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.pod-floating-video-wrapper .pod-video-control svg {
    width: 60%;
    height: 60%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.pod-video-sound[aria-pressed="false"] .pod-video-sound-on,
.pod-video-sound[aria-pressed="true"] .pod-video-sound-off {
    display: none;
}
.pod-floating-video-wrapper .pod-video-inner {
    width: 100%;
    height: 100%;
    position: relative;
}
.pod-floating-video-wrapper iframe,
.pod-floating-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pod-floating-video-wrapper {
        --pod-video-side-gap: min(var(--pod-video-mobile-x, 15px), 20vw);
        --pod-video-bottom-gap: min(var(--pod-video-mobile-y, 15px), 25vh);
        width: var(--pod-video-mobile-width, 120px);
        height: var(--pod-video-mobile-height, 213px);
    }
    .pod-floating-video-wrapper[data-mobile-position="left"] {
        left: max(var(--pod-video-side-gap), env(safe-area-inset-left, 0px));
        right: auto;
    }
    .pod-floating-video-wrapper[data-mobile-enabled="0"] {
        display: none;
    }
}

