body.single-product form.cart:not(.variations_form) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

body.single-product form.cart:not(.variations_form) .quantity {
    margin-right: 0;
}

.wc-video-preview-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    vertical-align: middle;
}

.wc-video-watch-button-container {
    margin: 20px 0;
    text-align: center;
}

.wc-video-watch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    vertical-align: middle;
}

.wc-video-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.wc-video-player iframe,
.wc-video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.wc-video-premium-container {
    margin: 30px 0;
    padding: 30px;
    background: #fff;
    border: 2px solid #0073aa;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.1);
}

.wc-video-premium-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.wc-video-locked {
    text-align: center;
    padding: 60px 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.wc-video-locked-icon {
    margin-bottom: 20px;
    color: #999;
}

.wc-video-locked h3 {
    margin-bottom: 10px;
    font-size: 22px;
    color: #333;
}

.wc-video-locked p {
    font-size: 16px;
    color: #666;
    margin-bottom: 0;
}

.wc-video-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc-video-info li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.wc-video-info li:last-child {
    border-bottom: none;
}

.wc-video-library-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.wc-video-library-wrap > h2 {
    margin-top: 0;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.wc-video-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.wc-video-library-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.wc-video-library-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.wc-video-library-thumbnail {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
    width: 100%;
}

.wc-video-library-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.wc-video-library-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem 1.25rem 1.25rem;
    box-sizing: border-box;
}

.wc-video-library-info h3 {
    margin: 0 0 0.65rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

.wc-video-library-info h3 a {
    color: inherit;
    text-decoration: none;
    display: inline;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.wc-video-library-info h3 a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.wc-video-library-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.wc-video-library-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
}

.wc-video-library-meta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.wc-video-library-info .button {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
    margin-top: auto;
}

.woocommerce-account .wc-video-library-wrap {
    clear: both;
    float: none;
    width: 100% !important;
    max-width: 100% !important;
}

.woocommerce-account .wc-video-library-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)) !important;
    width: 100% !important;
}

.woocommerce-account .wc-video-library-item {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
}

.woocommerce-account .wc-video-library-info h3,
.woocommerce-account .wc-video-library-info h3 a {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    max-width: 100% !important;
}

.woocommerce-account .wc-video-library-info h3 a {
    display: inline !important;
}

@media (max-width: 768px) {
    .wc-video-library-grid {
        grid-template-columns: 1fr;
    }
    
    body.single-product form.cart:not(.variations_form) {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wc-video-preview-open {
        width: 100%;
        justify-content: center;
    }
}

video::-webkit-media-controls-download-button {
    display: none;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

video::-webkit-media-controls-panel {
    width: calc(100% + 30px);
}

.wc-video-order-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wc-video-order-actions .wc-video-watch-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    font-size: 14px;
    background: #0073aa;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wc-video-order-actions .wc-video-watch-btn:hover {
    background: #005177;
    transform: translateX(3px);
}

.wc-video-order-actions .wc-video-watch-btn svg {
    flex-shrink: 0;
}

body.wc-video-modal-open {
    overflow: hidden;
}

.wc-video-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
}

.wc-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    cursor: pointer;
}

.wc-video-modal__dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(960px, 94vw);
    max-height: 90vh;
    background: #0f0f0f;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wc-video-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.wc-video-modal__title {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

.wc-video-modal__close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.85;
}

.wc-video-modal__close:hover {
    opacity: 1;
}

.wc-video-modal__body {
    padding: 16px;
    overflow: auto;
    flex: 1;
}

.wc-video-modal__body .wc-video-player {
    padding-bottom: 56.25%;
    border-radius: 6px;
}

.wc-video-modal__loading,
.wc-video-modal__error {
    color: #ccc;
    text-align: center;
    padding: 24px;
    margin: 0;
}

.wc-video-modal__error {
    color: #f88;
}

/* Erişim süresi bilgisi */
.wc-video-expiry {
    font-size: 0.85em;
    color: #555;
    margin: 6px 0 8px;
}

.wc-video-expiry--warning {
    color: #e2401c;
    font-weight: 600;
}

.wc-video-expiry--expired {
    color: #e2401c;
    font-weight: 600;
}
